dylex / postgresql-typed

Haskell PostgreSQL library with compile-time type inference
http://hackage.haskell.org/package/postgresql-typed
Other
84 stars 12 forks source link

Fix auth issue with Crypton #34

Closed kamek-pf closed 1 year ago

kamek-pf commented 1 year ago

I'm getting the following error when attempting to use this repo with the crypton flag enabled against a password protected PG instance:

    • Exception when trying to run compile-time code:
        user error (pgConnect: unexpected response: AuthenticationMD5Password "\139\156\132v"

This fixes CPP checks to use the same code paths for cryptonite and crypton.

Also adding an upper bound to aeson because of a recent breaking change. I'll send another PR for the aeson migration, but it'd be great if you could do two separate releases, as the aeson upgrade will force 2.2 and it's breaking some of our builds. ... And I imagine it will be the case for other projects out there.

dylex commented 1 year ago

Thanks! I haven't been able to test the crypon changes unfortunately, so didn't catch tihs.