You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @camsaul! A regression issue was introduced with the latest library version upgrade, I guess. (Or probably I didn't notice this one before.) Select queries simply do not work with custom types, e.g. native PostgreSQL ENUM type. There is an exception that happens during the where+ clause construction.
class java.lang.ClassCastException - class clojure.lang.PersistentVector cannot be cast to class clojure.lang.Named (clojure.lang.PersistentVector and clojure.lang.Named are in unnamed module of loader 'app')
toucan.test_models.pg_enum$kwd__GT_pg_enum$invokeStatic (pg_enum.clj:17)
on (pg_enum.clj:15)
toucan.models$do_type_fn$invokeStatic (models.clj:358)
on (models.clj:354)
toucan.db$where_PLUS_$invokeStatic (db.clj:463)
on (db.clj:453)
toucan.db$select_one$invokeStatic (db.clj:628)
...
So the fact is the current where+ fn implementation doesn't cater for the things like [:= <custom_type_value>].
Will provide you with a fix soon. Had to develop one during the weekend.
Cheers!
The text was updated successfully, but these errors were encountered:
Hi @camsaul! A regression issue was introduced with the latest library version upgrade, I guess. (Or probably I didn't notice this one before.) Select queries simply do not work with custom types, e.g. native PostgreSQL ENUM type. There is an exception that happens during the
where+
clause construction.So the fact is the current
where+
fn implementation doesn't cater for the things like[:= <custom_type_value>]
.Will provide you with a fix soon. Had to develop one during the weekend.
Cheers!
The text was updated successfully, but these errors were encountered: