From c128d71ee21ea43862b8a909fc15a021cf7a7408 Mon Sep 17 00:00:00 2001 From: Richard Newman Date: Tue, 23 Aug 2016 09:46:00 -0700 Subject: [PATCH] Warn when an attribute could not be interned when transacting. We may subsequently wish to make this an error. --- src/datomish/transact.cljc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/datomish/transact.cljc b/src/datomish/transact.cljc index c9f706a8..b87d93f4 100644 --- a/src/datomish/transact.cljc +++ b/src/datomish/transact.cljc @@ -115,6 +115,8 @@ v (if (ds/kw? (db/schema db) a) ;; TODO: decide if this is best. We could also check for ref and numeric types. v (db/entid db v))] + (when-not (integer? a) + (println "WARNING: unknown attribute" a)) [op e a v tx])) (defrecord Transaction [db tempids entities])