   that a query result limit was exceeded."
   [limit]
   ; TODO: tempted to create a custom exception for this, or at least
-  ;  some kind of general-purpose PuppetDBEsxception
+  ;  some kind of general-purpose PuppetDBException
   (throw (IllegalStateException.
            (format
              "Query returns more than the maximum number of results (max: %s)"

  (:require [clojure.java.jdbc :as sql]
            [clojure.tools.logging :as log]))

(defn query-params->str*
  "Helper method for converting a list of parameters from a prepared statement
  to a human-readable string.  Our current connection pool library does not

  [log-statements? params]
  (if log-statements?
    (format "Query Params: %s"
      (join ", " (map query-param->str* params)))
    (str "(Query params unavailable: to enable logging of query params, please set "
        "'log-statements' to true in the [database] section of your config file.)")))

(defn connection-hook*
  "Helper method for building up a `ConnectionHook` for our connection pool.
