Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to extract data type for UUIDs #1

Open
drewverlee opened this issue Feb 5, 2018 · 4 comments
Open

Unable to extract data type for UUIDs #1

drewverlee opened this issue Feb 5, 2018 · 4 comments

Comments

@drewverlee
Copy link

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

@viesti
Copy link
Owner

viesti commented Feb 5, 2018

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
Copy link
Owner

viesti commented Feb 5, 2018

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.

@drewverlee
Copy link
Author

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?

@viesti
Copy link
Owner

viesti commented Feb 5, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants