lib/torque/postgresql/adapter/database_statements.rb in torque-postgresql-3.2.2 vs lib/torque/postgresql/adapter/database_statements.rb in torque-postgresql-3.3.0

- old
+ new

@@ -174,14 +174,14 @@ end # Build the query for allowed schemas def user_defined_schemas_sql conditions = [] - conditions << <<-SQL if schemas_blacklist.any? - nspname NOT LIKE ANY (ARRAY['#{schemas_blacklist.join("', '")}']) + conditions << <<-SQL.squish if schemas_blacklist.any? + nspname NOT LIKE ALL (ARRAY['#{schemas_blacklist.join("', '")}']) SQL - conditions << <<-SQL if schemas_whitelist.any? + conditions << <<-SQL.squish if schemas_whitelist.any? nspname LIKE ANY (ARRAY['#{schemas_whitelist.join("', '")}']) SQL <<-SQL.squish SELECT nspname