We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcf115a + ee2f95d commit 337b2d2Copy full SHA for 337b2d2
lib/arjdbc/db2/adapter.rb
@@ -328,6 +328,17 @@ def prefetch_primary_key?(table_name = nil)
328
select_one(sql).nil?
329
end
330
331
+ # @override
332
+ def primary_keys(table)
333
+ # If no schema in table name is given but present in URL parameter. Use the URL parameter one
334
+ # This avoids issues if the table is present in multiple schemas
335
+ if table.split(".").size == 1 && schema
336
+ table = "#{schema}.#{table}"
337
+ end
338
+
339
+ super
340
341
342
def next_sequence_value(sequence_name)
343
select_value("SELECT NEXT VALUE FOR #{sequence_name} FROM sysibm.sysdummy1")
344
0 commit comments