-
Notifications
You must be signed in to change notification settings - Fork 115
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
HStore support #309
Comments
I guess |
|
The core conversion to a lazy bytestring is correct. I checked:
|
It's a bit confusing. Firstly, it seems like Secondly, I looked at what |
See 8.4.2. here: https://www.postgresql.org/docs/9.0/static/datatype-binary.html |
Ok -- got it. Here's the correct code:
|
Cool. What's |
|
OK, this seems pretty reasonable. |
so, can we keep this issue open, while I chase down the PR on pg-simple? |
I guess it'll be a good idea to include all the hstore functions in the PGHStore PR as well, right? |
|
(and tests) |
@tomjaguarpaw do you have any thoughts on how to deal with haskellari/qc-instances#9 (comment) Any tests in Opaleye based on QC would also be affected by this issue, right? |
The Opaleye QuickCheck tests only do round-tripping of |
I think patching |
Planning to raise a PR for this, once one of lpsmith/postgresql-simple#214 or lpsmith/postgresql-simple#215 is merged into PG-Simple.
However, in my development branch, I'm facing a very strange issue. Here's how I've defined the
PGHStore
data type:A simple test fails:
Generated SQL query:
Expected SQL query:
I've already validated that the pg-simple machinery is working almost correctly. So, I've done something really stupid one while defining
PGHStore
above.The text was updated successfully, but these errors were encountered: