rsim/ruby-plsql — pull request #22 by yahonda (2012-01-02 21:12:19+00:00)
Title: Support ActiveRecord 3.1, ruby-oci8 OCI8.properties[:length_semantics]

This pull request supports ActiveRecord 3.1 and ruby-oci8 OCI8.properties [:length_semantics] ( https://github.com/kubo/ruby-oci8/commit/0bb6cd39c78ea8778d57528d0478a9ac3ced37ba#ext/oci8/bind.c)

Without this commit, rake spec got two failures as follows.

```ruby
[1.9.3@rubyplsql] yahonda@myoel5 ~/Dropbox/git/ruby-plsql (support_newer_activerecord)
$ ruby -I"lib:lib:spec" \
"/home/yahonda/.rvm/gems/ruby-1.8.7-p352/gems/rspec-1.3.2/bin/spec" \
"spec/plsql/variable_spec.rb"

..............................FF...

1)
ArgumentError in 'Package variables / String should set and get VARCHAR2(n CHAR) variable'
too long String to set. (6 for 3)
/home/yahonda/work/git/ruby-oci8/lib/oci8/bindtype.rb:157:in `set'
/home/yahonda/work/git/ruby-oci8/lib/oci8/bindtype.rb:157:in `initialize'
/home/yahonda/work/git/ruby-oci8/lib/oci8/bindtype.rb:157:in `new'
/home/yahonda/work/git/ruby-oci8/lib/oci8/bindtype.rb:157:in `create'
/home/yahonda/work/git/ruby-oci8/lib/oci8/oci8.rb:624:in `make_bind_object'
/home/yahonda/work/git/ruby-oci8/lib/oci8/oci8.rb:427:in `bind_param'
/home/yahonda/Dropbox/git/ruby-plsql/spec/../lib/plsql/oci_connection.rb:93:in `bind_param'
/home/yahonda/Dropbox/git/ruby-plsql/spec/../lib/plsql/procedure_call.rb:20:in `exec'
/home/yahonda/Dropbox/git/ruby-plsql/spec/../lib/plsql/procedure_call.rb:19:in `each'
/home/yahonda/Dropbox/git/ruby-plsql/spec/../lib/plsql/procedure_call.rb:19:in `exec'
/home/yahonda/Dropbox/git/ruby-plsql/spec/../lib/plsql/variable.rb:42:in `value='
/home/yahonda/Dropbox/git/ruby-plsql/spec/../lib/plsql/package.rb:56:in `method_missing'
./spec/plsql/variable_spec.rb:59:

2)
'Package variables / String should set and get VARCHAR2(n BYTE) variable' FAILED
expected Exception with message matching /buffer too small/, got #
./spec/plsql/variable_spec.rb:67:

Finished in 1.991699 seconds

35 examples, 2 failures
```