diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-14 04:51:54 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-11-14 04:51:54 +0000 |
commit | d28e9aef5f7ea4a0432c154f2a3f89f28edcc4ba (patch) | |
tree | c7417d68caa8aa77753516e78731b6465005baf8 /activerecord/lib | |
parent | d8f5ccab1cf8c660849df299c1fe1ead58e83c95 (diff) | |
download | rails-d28e9aef5f7ea4a0432c154f2a3f89f28edcc4ba.tar.gz rails-d28e9aef5f7ea4a0432c154f2a3f89f28edcc4ba.tar.bz2 rails-d28e9aef5f7ea4a0432c154f2a3f89f28edcc4ba.zip |
Oracle: test case for column default parsing. References #2788.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/oci_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/oci_adapter.rb b/activerecord/lib/active_record/connection_adapters/oci_adapter.rb index 59191948d2..2bcd68f2a9 100644 --- a/activerecord/lib/active_record/connection_adapters/oci_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/oci_adapter.rb @@ -338,7 +338,7 @@ begin end select_all(table_cols).map do |row| - row['data_default'].gsub!(/^'(.*)'\s*$/, '\1') if row['data_default'] + row['data_default'].sub!(/^'(.*)'\s*$/, '\1') if row['data_default'] OCIColumn.new( oci_downcase(row['column_name']), row['data_default'], |