Permalink
Browse files

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
  • Loading branch information...
1 parent ebf9b37 commit 9e3a51eb6cc6f54c861c808c15bf8895d14aa023 @jeremy jeremy committed May 15, 2007
Showing with 3 additions and 0 deletions.
  1. +2 −0 activerecord/CHANGELOG
  2. +1 −0 activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
View
2 activerecord/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Oracle: extract column length for CHAR also. #7866 [ymendel]
+
* Document :allow_nil option for validates_acceptance_of since it defaults to true. [tzaharia]
* Update documentation for :dependent declaration so that it explicitly uses the non-deprecated API. [danger]
View
1 activerecord/lib/active_record/connection_adapters/oracle_adapter.rb
@@ -320,6 +320,7 @@ def columns(table_name, name = nil) #:nodoc:
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

0 comments on commit 9e3a51e

Please sign in to comment.