table-spec icon indicating copy to clipboard operation
table-spec copied to clipboard

Unable to extract data type for UUIDs

Open drewverlee opened this issue 7 years ago • 4 comments

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

drewverlee avatar Feb 05 '18 15:02 drewverlee

Thanks for noticing! :) Seems that this maps to java.sql.Types/OTHER with a type_name "uuid". So I'll put a defmethodto handle this case.

viesti avatar Feb 05 '18 20:02 viesti

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.

viesti avatar Feb 05 '18 20:02 viesti

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?

drewverlee avatar Feb 05 '18 21:02 drewverlee

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.

viesti avatar Feb 05 '18 21:02 viesti