guard against uncomparable values
Signed-off-by: Sean Corfield <sean@corfield.org>
This commit is contained in:
parent
3ca197b45c
commit
7c0e25f253
1 changed files with 3 additions and 1 deletions
|
|
@ -1060,7 +1060,9 @@
|
|||
|
||||
(defn- format-values [k xs]
|
||||
(let [first-xs (when (sequential? xs) (first (drop-while ident? xs)))
|
||||
row-ctr (and (sequential? xs) (contains? #{:row 'rows} (first xs)))
|
||||
row-ctr (and (sequential? xs)
|
||||
(ident? (first xs))
|
||||
(contains? #{:row 'rows} (first xs)))
|
||||
xs (if row-ctr (rest xs) xs)]
|
||||
(cond (and (ident? xs) (contains? #{:default 'default} xs))
|
||||
[(str (sql-kw xs) " " (sql-kw k))]
|
||||
|
|
|
|||
Loading…
Reference in a new issue