Permalink
Browse files

squelch table exists? queries.

  • Loading branch information...
1 parent c212a34 commit a29d1dbd59634594385d0303e06a3015dafdcd8f @tenderlove tenderlove committed Dec 9, 2011
@@ -24,7 +24,7 @@ def table_alias_for(table_name)
# table_exists?(:developers)
def table_exists?(table_name)
begin
- select_value("SELECT 1 FROM #{quote_table_name(table_name)} where 1=0")
+ select_value("SELECT 1 FROM #{quote_table_name(table_name)} where 1=0", 'SCHEMA')
true
rescue
false

0 comments on commit a29d1db

Please sign in to comment.