Error out when an attribute could not be interned when transacting.
This commit is contained in:
parent
7d63c2185d
commit
893f944596
1 changed files with 3 additions and 0 deletions
|
@ -115,6 +115,9 @@
|
||||||
v (if (ds/kw? (db/schema db) a) ;; TODO: decide if this is best. We could also check for ref and numeric types.
|
v (if (ds/kw? (db/schema db) a) ;; TODO: decide if this is best. We could also check for ref and numeric types.
|
||||||
v
|
v
|
||||||
(db/entid db v))]
|
(db/entid db v))]
|
||||||
|
(when-not (integer? a)
|
||||||
|
(raise "Unknown attribute " a
|
||||||
|
{:form orig :attribute a}))
|
||||||
[op e a v tx]))
|
[op e a v tx]))
|
||||||
|
|
||||||
(defrecord Transaction [db tempids entities])
|
(defrecord Transaction [db tempids entities])
|
||||||
|
|
Loading…
Reference in a new issue