Skip to content

Commit aaba424

Browse files
Avin Mathewkares
authored andcommitted
Return early if table name is nil
1 parent 906de16 commit aaba424

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/arjdbc/jdbc/adapter.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,7 @@ def tables(name = nil)
571571

572572
# @override
573573
def table_exists?(name)
574+
return false unless name
574575
@connection.table_exists?(name) # schema_name = nil
575576
end
576577

0 commit comments

Comments
 (0)