Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #5906: postgresql_adapter.rb.patch

File postgresql_adapter.rb.patch, 0.6 kB (added by baudelairien, 1 year ago)

same patch, but updated for rails 1-2-1

  • lib/active_record/connection_adapters/postgresql_adapter.rb

    old new  
    178178 
    179179      # Return the list of all tables in the schema search path. 
    180180      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(',') 
    182183        query(<<-SQL, name).map { |row| row[0] } 
    183184          SELECT tablename 
    184185            FROM pg_tables