This project is archived and is in readonly mode.
disregard for schema search path in postgresql_adapter.rb
-
SooDesuNe
One possible solution looks like:
# `AND schemaname = ANY (current_schemas(false))` added so only tables in the current search path are included query(<<-SQL).first[0].to_i > 0 SELECT COUNT(*) FROM pg_tables WHERE tablename = '#{table.gsub(/(^"|"$)/,'')}' #{schema ? "AND schemaname = '#{schema}'" : ''} AND schemaname = ANY (current_schemas(false)) SQL