File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1252,9 +1252,9 @@ def column_definitions(table_name) #:nodoc:
12521252
12531253 def tables ( name = nil )
12541254 select_values ( <<-SQL , 'SCHEMA' )
1255- SELECT tablename
1256- FROM pg_tables
1257- WHERE schemaname = ANY (current_schemas(false))
1255+ SELECT tablename
1256+ FROM pg_tables
1257+ WHERE schemaname = ANY (current_schemas(false))
12581258 SQL
12591259 end
12601260
@@ -1265,7 +1265,7 @@ def table_exists?(name)
12651265 binds = [ [ nil , table . gsub ( /(^"|"$)/ , '' ) ] ]
12661266 binds << [ nil , schema ] if schema
12671267
1268- exec_raw_query ( <<-SQL , 'SCHEMA' , binds ) . first [ "table_count" ] > 0
1268+ exec_query_raw ( <<-SQL , 'SCHEMA' , binds ) . first [ "table_count" ] > 0
12691269 SELECT COUNT(*) as table_count
12701270 FROM pg_tables
12711271 WHERE tablename = ?
You can’t perform that action at this time.
0 commit comments