table-spec
table-spec copied to clipboard
Unable to extract data type for UUIDs
Given a table column's type is UUID you get a java.lang.exception: Undefined data type 1111. The function it originates from tables in core.clj
Thanks for noticing! :) Seems that this maps to java.sql.Types/OTHER
with a type_name
"uuid"
. So I'll put a defmethod
to handle this case.
Should be fixed in master. If possible, you can test by (for example) cloning the repo and running lein install
and using 0.1.2-SNAPSHOT
as version.
Hi Viesti. I'm sure that fix will work for uuids. I'm going to make a pull request for some other postgres type_names that we have.
Is this intended to be postgres specific? I'm not sure how data_types and type_names differ across dbs?
PR is very welcome :) I haven't planned beyond Postgresql yet. Given coverage from other DB's, I think there is a possibility, but Postgresql is a start for now.