aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2011-05-18 18:03:57 +0900
committerAkira Matsuda <ronnie@dio.jp>2011-05-18 18:50:33 +0900
commitdf13f55d757dc8af30391b8d15af2c2d04f26aa4 (patch)
treeef5f182d4d50173970662a0bcc4749aa9c95f191
parenta61556387af8b52386f1f3319e5f93b5385d78df (diff)
downloadrails-df13f55d757dc8af30391b8d15af2c2d04f26aa4.tar.gz
rails-df13f55d757dc8af30391b8d15af2c2d04f26aa4.tar.bz2
rails-df13f55d757dc8af30391b8d15af2c2d04f26aa4.zip
remove unused table from FROM clause
pg_namespace has not been used since this commit 29b0707f07f148d98515125dab44b73cfdc0a3d4
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb2
1 files changed, 0 insertions, 2 deletions
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