diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-15 19:30:19 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-05-15 19:30:19 +0000 |
commit | 9e3a51eb6cc6f54c861c808c15bf8895d14aa023 (patch) | |
tree | 3011cec07e3929c64244b125a93b0e8286d26b25 /activerecord/lib/active_record/connection_adapters/oracle_adapter.rb | |
parent | ebf9b3737b9470c2fbedf39ac5cd5a4cba81afc1 (diff) | |
download | rails-9e3a51eb6cc6f54c861c808c15bf8895d14aa023.tar.gz rails-9e3a51eb6cc6f54c861c808c15bf8895d14aa023.tar.bz2 rails-9e3a51eb6cc6f54c861c808c15bf8895d14aa023.zip |
Oracle: extract column length for CHAR also. Closes #7866.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6738 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/oracle_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/oracle_adapter.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb b/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb index 8b555b1466..74101cf09a 100644 --- a/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb @@ -320,6 +320,7 @@ begin decode(data_type, 'NUMBER', data_precision, 'FLOAT', data_precision, 'VARCHAR2', data_length, + 'CHAR', data_length, null) as limit, decode(data_type, 'NUMBER', data_scale, null) as scale from all_tab_columns |