From 9f579f492a26e8078da8074a82b9aea4aabaeb0c Mon Sep 17 00:00:00 2001 From: Sean Corfield Date: Mon, 8 Feb 2021 12:48:33 -0800 Subject: [PATCH] Allow symbols in for/lock clauses --- src/honey/sql.cljc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/honey/sql.cljc b/src/honey/sql.cljc index 46b9229..0e9fdae 100644 --- a/src/honey/sql.cljc +++ b/src/honey/sql.cljc @@ -366,7 +366,11 @@ [(str (sql-kw k) " " (sql-kw strength) (when tables (str - (cond (#{:nowait :skip-locked :wait} tables) + (cond (and (keyword? tables) + (#{:nowait :skip-locked :wait} tables)) + (str " " (sql-kw tables)) + (and (symbol? tables) + ('#{nowait skip-locked wait} tables)) (str " " (sql-kw tables)) (sequential? tables) (str " OF "