db2 2.6.0 → 2.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1271,16 +1271,13 @@ module ActiveRecord
|
|
1271
1271
|
# Initializes the tables array
|
1272
1272
|
tables = []
|
1273
1273
|
# Retrieve table's metadata through IBM_DB driver
|
1274
|
-
stmt = IBM_DB.tables(@connection, nil,
|
1275
|
-
@servertype.set_case(@schema))
|
1274
|
+
stmt = IBM_DB.tables(@connection, nil, @servertype.set_case(@schema))
|
1276
1275
|
if(stmt)
|
1277
1276
|
begin
|
1278
1277
|
# Fetches all the records available
|
1279
1278
|
while tab = IBM_DB.fetch_assoc(stmt)
|
1280
1279
|
# Adds the lowercase table name to the array
|
1281
|
-
|
1282
|
-
tables << tab["table_name"].downcase
|
1283
|
-
end
|
1280
|
+
tables << tab["table_name"].downcase
|
1284
1281
|
end
|
1285
1282
|
rescue StandardError => fetch_error # Handle driver fetch errors
|
1286
1283
|
error_msg = IBM_DB.getErrormsg(stmt, IBM_DB::DB_STMT )
|