-
Notifications
You must be signed in to change notification settings - Fork 77
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
Postgres 12 Compatibility #133
Comments
Hi @arcreative can you please try upgrading to 2.99? It should fix your error. (I might have to cut a release if it’s not on rubygems yet). |
@pnomolos I don't see a tag for that--is there something I'm missing? |
Nevermind--I see you're versioning but not tagging. 2.9.10 looks like it's working better. |
@pnomolos I'm seeing some null constraint errors with some of the newer changes here... I would love to dive into it further, but I don't really have time to install an older version of PG right now to investigate, unfortunately... |
@arcreative I saw that myself on one of our projects but I’m using Sequel and was in a rush so just converted to native Upsert. Any chance you can send me a small test case? I’m running PG10 through 12 so I can test it 😁 |
@arcreative Even a backtrace and the table creation statement should be enough, if you’re able to share that 👍 |
@arcreative sounds very simular yto the issue i had when upgrading to pg12 and while upgrading the gem. #117 (comment) Basically in the older verdion the gem had a bug that used the custom created function to upsert, which is compatible with update only upserts, with missing not null values. While the pg_native approach does not accept that, which is probably failing now. |
I stopped being lazy and installed the Thanks for the info, and would definitely get a new gem cut if you're planning on keeping it this way, but I'm not sure that I would slate this as a non-breaking change, so you might want to bump it to 3.0 as of when you implemented the native upsert function. |
Fixed via #138 |
Looks like this gem doesn't work with Postgres 12--I'm in the awkward phase where I've upgraded my local PG, but I haven't yet upgraded our application to Rails 6 to take advantage of the native upsert. The error is as follows:
The text was updated successfully, but these errors were encountered: