Remove a duplicate definition of context->sql-string.

This commit is contained in:
Richard Newman 2016-07-26 10:50:10 -07:00
parent 8633efc6be
commit 5e1648b05f

View file

@ -49,11 +49,11 @@
:modifiers [:distinct]}
(clauses/cc->partial-subquery (:cc context))))
(defn context->sql-string [context]
(defn context->sql-string [context args]
(->
context
context->sql-clause
(sql/format :quoting sql-quoting-style)))
(sql/format args :quoting sql-quoting-style)))
(defn- validate-with [with]
(when-not (nil? with)
@ -96,12 +96,6 @@
:elements (:elements find)
:cc (clauses/patterns->cc (:default-source context) where external-bindings)))))
(defn context->sql-string
[context args]
(-> context
context->sql-clause
(sql/format args :quoting sql-quoting-style)))
(defn find->sql-clause
"Take a parsed `find` expression and turn it into a structured SQL
expression that can be formatted by honeysql."