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

epgsql & uuid #15

Closed
lindem opened this issue Feb 13, 2012 · 1 comment
Closed

epgsql & uuid #15

lindem opened this issue Feb 13, 2012 · 1 comment

Comments

@lindem
Copy link

lindem commented Feb 13, 2012

Is the UUID data type supported by epgsql? If so, how would I use it?

(see http://www.postgresql.org/docs/9.1/static/datatype-uuid.html for the datatype in question)

Regards,
-T.

@wg
Copy link
Owner

wg commented Feb 13, 2012

Hi, epgsql doesn't have specific support for the UUID type but you can pass the textual value in as a binary or string (i.e. <<"a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11">>) and queries will output the textual value as a binary.

The same holds true for any data type not listed in the README's Data Representation section.

@wg wg closed this as completed Feb 19, 2012
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