mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
ebf9b3737b
commit
9e3a51eb6c
2 changed files with 3 additions and 0 deletions
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue