Ticket #5906: postgresql_adapter.rb.patch
| File postgresql_adapter.rb.patch, 0.6 kB (added by baudelairien, 1 year ago) |
|---|
-
lib/active_record/connection_adapters/postgresql_adapter.rb
old new 178 178 179 179 # Return the list of all tables in the schema search path. 180 180 def tables(name = nil) #:nodoc: 181 schemas = schema_search_path.split(/,/).map { |p| quote(p) }.join(',') 181 schemas = 182 schema_search_path.split(/\s*,\s*/).map { |p| quote(p) }.join(',') 182 183 query(<<-SQL, name).map { |row| row[0] } 183 184 SELECT tablename 184 185 FROM pg_tables