From b9a4d0e12d0d67cbd392d5482b4b8dd843d97dd5 Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Sat, 23 Jan 2021 15:53:01 -0800 Subject: [PATCH] Add warn-on-reflection where it was missing --- src/next/jdbc/default_options.clj | 4 +++- src/next/jdbc/plan.clj | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/next/jdbc/default_options.clj b/src/next/jdbc/default_options.clj index 726aad5..89f9d82 100644 --- a/src/next/jdbc/default_options.clj +++ b/src/next/jdbc/default_options.clj @@ -1,9 +1,11 @@ -;; copyright (c) 2020 Sean Corfield, all rights reserved +;; copyright (c) 2020-2021 Sean Corfield, all rights reserved (ns ^:no-doc next.jdbc.default-options "Implementation of default options logic." (:require [next.jdbc.protocols :as p])) +(set! *warn-on-reflection* true) + (defrecord DefaultOptions [connectable options]) (extend-protocol p/Sourceable diff --git a/src/next/jdbc/plan.clj b/src/next/jdbc/plan.clj index d4c903a..152bed9 100644 --- a/src/next/jdbc/plan.clj +++ b/src/next/jdbc/plan.clj @@ -1,10 +1,12 @@ -;; copyright (c) 2020 Sean Corfield, all rights reserved +;; copyright (c) 2020-2021 Sean Corfield, all rights reserved (ns next.jdbc.plan "Some helper functions that make common operations with `next.jdbc/plan` much easier." (:require [next.jdbc :as jdbc])) +(set! *warn-on-reflection* true) + (defn select-one! "Execute the SQL and params using `next.jdbc/plan` and return just the selected columns from just the first row.