Remove a duplicate definition of context->sql-string.
This commit is contained in:
parent
8633efc6be
commit
5e1648b05f
1 changed files with 2 additions and 8 deletions
|
@ -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."
|
||||
|
|
Loading…
Reference in a new issue