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

UUID parameters need to be passed as strings #104

Open
nikammerlaan opened this issue Nov 12, 2024 · 2 comments
Open

UUID parameters need to be passed as strings #104

nikammerlaan opened this issue Nov 12, 2024 · 2 comments

Comments

@nikammerlaan
Copy link

When dealing with UUID types, the intuitive method is to pass in a Java UUID object as the parameter. While this passes without error, it will never actually match. Instead, you need to pass in the UUID as a string. Other JDBC libs like postgres support this, so it seems natural for duckdb to support this as well.

@Mause
Copy link
Member

Mause commented Nov 13, 2024

Can you provide an example of the code you're running?

@nikammerlaan
Copy link
Author

Here's a minimal reproducible example.

After comparing the inputs and outputs, it seems like there's something affecting just the beginning of the UUID:

Expected :a0a34a0a-1794-47b6-b45c-0ac68cc03702
Actual   :20a34a0a-1794-47b6-b45c-0ac68cc03702

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