Skip to content

Commit dd3a679

Browse files
committed
#exec_raw_query was renamed to #exec_query_raw
1 parent bfe4217 commit dd3a679

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/arjdbc/postgresql/adapter.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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 = ?

0 commit comments

Comments
 (0)