Fixes #327 by correcting generic-1 helper
This commit is contained in:
parent
21c59ff96d
commit
bece0f1fd1
2 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@
|
|||
* 2.0.next in progress
|
||||
* Fix #328 by adding `:distinct` as special syntax, affecting an expression.
|
||||
* Address #327 by changing "unknown clause" error to including mention of "nil values" (which are also illegal).
|
||||
* Fix #327 by making single-argument helpers consistent with multi-argument helpers.
|
||||
* Support PostgreSQL's `&&` array operator.
|
||||
* Clarify how to `SELECT` a function expression (in **Getting Started**).
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@
|
|||
(helper-merge {} k args)))
|
||||
|
||||
(defn- generic-1 [k [data arg]]
|
||||
(if (some? arg)
|
||||
(if (map? data)
|
||||
(assoc data k arg)
|
||||
(assoc {} k data)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue