| Message: 96638 |
 |
BY: Jordan Curzon (curzonj) DATE: 2011-06-17 14:57 SUBJECT: RE: InvalidHandle errors Kubo, I see a bug in 2.0.5. On 2.0.4 I get the following:
oci8.c:261:in oci8lib_191.so: ORA-28002: the password will expire within 7 days (OCISuccessWithInfo)
from /home/t/ruby-1.9.2-p0-1/lib/ruby/gems/1.9.1/bundler/gems/ruby-oci8-6c275102ebbb/lib/oci8/oci8.rb:117:in `initialize'
On 2.0.5 I get this:
stmt.c:312:in oci8lib_191.so: Invalid Handle (OCIInvalidHandle)
from /home/t/ruby-1.9.2-p0-1/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.5/lib/oci8/oci8.rb:288:in `exec'
from /home/t/ruby-1.9.2-p0-1/lib/ruby/gems/1.9.1/gems/ruby-oci8-2.0.5/lib/oci8/oci8.rb:116:in `exec'
from /home/t/ruby-1.9.2-p0-1/lib/ruby/gems/1.9.1/gems/activerecord-oracle_enhanced-adapter-1.2.4/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb:224:in `new_connection'
from /home/t/ruby-1.9.2-p0-1/lib/ruby/gems/1.9.1/gems/activerecord-oracle_enhanced-adapter-1.2.4/lib/active_record/connection_adapters/oracle_enhanced_oci_connection.rb:328:in `initialize'
Would it be possible to fix it so that instead of just returning to the previous behavior of dying with the OCI message, it could raise a warning and continue? It would also be a good idea to make sure that when the password is actually expired and the OCI result in an error and not success_with_info, that it still puts the error message and not an invalid_handle error. | |