-
Notifications
You must be signed in to change notification settings - Fork 388
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
Added minimal implementation of PGconn with unescape_bytea #655
Conversation
Before:
After:
4 errors fixed. OK to merge? |
👍 |
Added minimal implementation of PGconn with unescape_bytea
Thanks Uwe, looks good however with jruby-pg around it's quite ugly to pollute their name-space ... we did moneky-patch AR previously so would you mind if I change that ? also I'm not sure why you put up the 1.4 target ... I'd like to put it on 1-3-stable and then merge here so that it lands in next stable release (for 1.4 I would also move this code into native), thoughts? |
Hi @kares ! Thanks for looking at this. Feel free to change as you see fit 😄 and put on the 1-3-stable as well. I was unsure if 1-3-stable targeted AR 4.2. I got an error using schema_plus without any implemented PGconn because the OID implementation for PostgreSQL is loaded then. Not sure if this is intended, but it seems ARJDBC aims to use as much standard AR as possible, and AR uses PGconn directly. |
oh, you guys merged that already - well just go for it than - I do not have time to "play" around AR 4.2 compatibility hacks just be aware when introducing another :) ... planning a 1.4 pre-release from master. |
@donv OID was completely re-invented previously, AR "promised" mixins will be shareable ...but it's not :( |
I'd like everyone to play nice together, but it seems jruby-pg and ARJDBC are exclusive, right? They should not be used together? AR+ARJDBC or AR+jruby-pg, right? |
why would they be exclusive? ... I mean for AR they might be, but pg is not made solely for AR ... |
... you can hide the |
Oh. I'm learning, then :) How would you use jruby-pg with ARJDBC? I'll move the PGconn class below the ActiveRecord::ConnectionAdapters::PostgreSQL::OID module. |
... one can access DBs in different ways (along side with AR) - which is probably uncommon but possible |
To fix #651 and #652 .