File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
lib/active_record/connection_adapters Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11
22MASTER
33
4+ * For tables that named with schema(ex. rails.users), they could not get length of column.
5+ column of varchar(40) gets length => nil. Ticket #27 & #15 [Ken Tachiya]
6+
47* Altered limited_update_conditions regex conditions, the .* would greedily fail
58 if the where_sql had WHERE in a table or field, etc. [Ransom Briggs]
69
Original file line number Diff line number Diff line change @@ -1042,7 +1042,7 @@ def column_definitions(table_name)
10421042 columns.NUMERIC_PRECISION as numeric_precision,
10431043 CASE
10441044 WHEN columns.DATA_TYPE IN ('nchar','nvarchar') THEN columns.CHARACTER_MAXIMUM_LENGTH
1045- ELSE COL_LENGTH(columns.TABLE_NAME, columns.COLUMN_NAME)
1045+ ELSE COL_LENGTH(columns.TABLE_SCHEMA+'.'+columns. TABLE_NAME, columns.COLUMN_NAME)
10461046 END as length,
10471047 CASE
10481048 WHEN columns.IS_NULLABLE = 'YES' THEN 1
You can’t perform that action at this time.
0 commit comments