Skip to content
Snippets Groups Projects
Commit 20c431ea authored by Cam Saul's avatar Cam Saul
Browse files

fallback to :UnknownType for Fields on an unknown type returned by the

generic SQL native QP
parent ee8b084a
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,9 @@
[v]
(if-not v :UnknownField
(or (driver/class->base-type (type v))
(throw (ApiException. (int 500) (format "Missing base type mapping for %s in driver/class->base-type. Please add an entry."
(str (type v))))))))
(do (log/warn (format "Missing base type mapping for %s in driver/class->base-type. Please add an entry."
(str (type v))))
:UnknownField))))
(defn process-and-run
"Process and run a native (raw SQL) QUERY."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment