Open imustafin opened 3 years ago
I updated this against 61-stable since against master I am seeing a lot of errors which most likely is a problem with rails HEAD.
@imustafin unfortunately we have a few consistent errors but this particular one looks like it added some new one related to prepared arity mismatch. Any chance stringtype is involved here?
@dr-itz If the above is not really an issue for this PR do you have an opinion here? Also @kares :)
https://app.travis-ci.com/github/jruby/activerecord-jdbc-adapter/jobs/527824796
@enebo which tests are now failing comparing to 61-stable? I can't seem to find them.
I'll take a look at this PR (hopefully by Monday). Do you plan to make CI green soon on 61-stable?
@imustafin in the link above it is the tests like this:
"ActiveRecord::ConnectionAdapters::PostgreSQLAdapterTest#test_exec_with_binds:
ActiveRecord::StatementInvalid: ActiveRecord::JDBCError: org.postgresql.util.PSQLException: ERROR: bind message supplies 0 parameters, but prepared statement "" requires 1"
I did not see these in the head build for 61-stable.
@imustafin yeah. I just merged @kares review comment since it makes sense to honor settings. This will start a new CI run and we can see if we still see those couple of errors with this change or they are intermittent.
What is the status of this PR?
I'm still here but haven't used activerecord-jdbc-adapter for a long time.
Maybe I can rebase this PR and we can resurrect the discussion.
@Faq do you want this to be merged? What is you use case? Is it similar to #1086?
Fixes #1086.
I'm not sure if changing stringtype is a good idea, but tests pass. I am now testing these changes in our projects.
I think that standard Rails with pg is working similarly by letting postgres to infer the needed types.