From 7e5f5a0b6bfc3a851a3feb45017287193e3393fd Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 7 Jun 2018 10:59:34 -0400 Subject: [PATCH] DbHelper.find: column.table? strike that, reverse it --- lib/db_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/db_helper.rb b/lib/db_helper.rb index 0f06f66ff08..2881628e04d 100644 --- a/lib/db_helper.rb +++ b/lib/db_helper.rb @@ -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