aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/vendor/db2.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/vendor/db2.rb')
-rw-r--r--activerecord/lib/active_record/vendor/db2.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/vendor/db2.rb b/activerecord/lib/active_record/vendor/db2.rb
index 5ebd348a0a..ec652f8706 100644
--- a/activerecord/lib/active_record/vendor/db2.rb
+++ b/activerecord/lib/active_record/vendor/db2.rb
@@ -111,17 +111,17 @@ module DB2
end
def columns(table_name, schema_name = '%')
- check_rc(SQLColumns(@handle, '', schema_name, table_name, '%'))
+ check_rc(SQLColumns(@handle, '', schema_name.upcase, table_name.upcase, '%'))
fetch_all
end
- def tables
- check_rc(SQLTables(@handle, '', '%', '%', 'TABLE'))
+ def tables(schema_name = '%')
+ check_rc(SQLTables(@handle, '', schema_name.upcase, '%', 'TABLE'))
fetch_all
end
- def indexes(table_name)
- check_rc(SQLStatistics(@handle, '', '', table_name, SQL_INDEX_ALL, SQL_ENSURE))
+ def indexes(table_name, schema_name = '')
+ check_rc(SQLStatistics(@handle, '', schema_name.upcase, table_name.upcase, SQL_INDEX_ALL, SQL_ENSURE))
fetch_all
end