From df13f55d757dc8af30391b8d15af2c2d04f26aa4 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Wed, 18 May 2011 18:03:57 +0900 Subject: remove unused table from FROM clause pg_namespace has not been used since this commit 29b0707f07f148d98515125dab44b73cfdc0a3d4 --- .../lib/active_record/connection_adapters/postgresql_adapter.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 8cb01a834f..196e5630ae 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -823,7 +823,6 @@ module ActiveRecord FROM pg_class seq, pg_attribute attr, pg_depend dep, - pg_namespace name, pg_constraint cons WHERE seq.oid = dep.objid AND seq.relkind = 'S' @@ -847,7 +846,6 @@ module ActiveRecord SELECT DISTINCT(attr.attname) FROM pg_attribute attr, pg_depend dep, - pg_namespace name, pg_constraint cons WHERE attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid -- cgit v1.2.3