DbHelper.find: column.table? strike that, reverse it

This commit is contained in:
Michael Brown 2018-06-07 10:59:34 -04:00
parent 8d57c712c3
commit 7e5f5a0b6b

View File

@ -33,7 +33,7 @@ class DbHelper
column_name = rc["column_name"]
result = connection.async_exec("SELECT #{column_name} FROM #{table_name} WHERE #{column_name} LIKE $1", args) rescue nil
if result&.ntuples > 0
found["#{column_name}.#{table_name}"] = result.map {|r| r[column_name]}
found["#{table_name}.#{column_name}"] = result.map {|r| r[column_name]}
end
end
found