From 5e1648b05f1fdc080f341ce9d24bb7eb7c044b73 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Tue, 26 Jul 2016 10:50:10 -0700 Subject: [PATCH] Remove a duplicate definition of context->sql-string. --- src/datomish/query.cljc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/datomish/query.cljc b/src/datomish/query.cljc index 6a3cfa0d..4268f1ce 100644 --- a/src/datomish/query.cljc +++ b/src/datomish/query.cljc @@ -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."