Review comment: be more strict in lookup-ref?.
This commit is contained in:
parent
44db8116bf
commit
5ece60e3e9
1 changed files with 4 additions and 1 deletions
|
@ -644,8 +644,11 @@
|
||||||
(->> (update-txInstant db*)))))
|
(->> (update-txInstant db*)))))
|
||||||
|
|
||||||
(defn- lookup-ref? [x]
|
(defn- lookup-ref? [x]
|
||||||
|
"Return true if `x` is like [:attr value]."
|
||||||
(and (sequential? x)
|
(and (sequential? x)
|
||||||
(= (count x) 2)))
|
(= (count x) 2)
|
||||||
|
(or (keyword? (first x))
|
||||||
|
(integer? (first x)))))
|
||||||
|
|
||||||
(defn <?run
|
(defn <?run
|
||||||
"Execute the provided query on the provided DB.
|
"Execute the provided query on the provided DB.
|
||||||
|
|
Loading…
Reference in a new issue