Permalink
Browse files

Merge [6738] to stable: extract Oracle CHAR column length. References #…

…7866.

git-svn-id: http://svn-commit.rubyonrails.org/rails/branches/1-2-stable@6739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent cfcc188 commit 173e2d272670fab5a98ccb6d7619dd3aea73ffc9 @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
@@ -1,5 +1,7 @@
*SVN*
+* Oracle: extract column length for CHAR also. #7866 [ymendel]
+
* Small additions and fixes for ActiveRecord documentation. Closes #7342 [jeremymcanally]
* SQLite: binary escaping works with $KCODE='u'. #7862 [tsuka]
@@ -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 173e2d2

Please sign in to comment.