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

Instances for UUID #27

Open
ploeh opened this issue May 29, 2019 · 1 comment
Open

Instances for UUID #27

ploeh opened this issue May 29, 2019 · 1 comment

Comments

@ploeh
Copy link
Contributor

ploeh commented May 29, 2019

The current support for SQL Server's UNIQUEIDENTIFIER treats database values as ByteString values. Would you consider also supporting UUID from the uuid package?

I do realise that this means taking on another dependency, so this is meant as a completely open question. If you don't want to do that, then that's the end of that story 😄

It turns out that it isn't as trivial as I first thought to convert back and forth between odbc's ByteString representation, and UUID values: haskell-hvr/uuid#48

I do, however, have a working solution, and I'll be happy to contribute a pull request, if this is something that you want to move forward with.

@chrisdone
Copy link
Contributor

I don't mind depending on uuid. I think that you may want to use the Binary type as a testbed.

The ByteString type will treat the content as a kind of SQL Server string which has a more ambiguous meaning about whether it's raw binary or some kind of interpreted string.

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