Fix small issue which is required to support the custom schema in re_sql test cases.

pull/25/head
Khushboo Vashi 2019-07-08 12:33:31 +05:30 committed by Akshay Joshi
parent 11a3aa56be
commit 7c38c1cb38
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ def verify_schemas(server, db_name, schema_name):
server['port'], server['port'],
server['sslmode']) server['sslmode'])
pg_cursor = connection.cursor() pg_cursor = connection.cursor()
pg_cursor.execute("SELECT * FROM pg_namespace sch" pg_cursor.execute("SELECT oid,* FROM pg_namespace sch"
" WHERE sch.nspname='%s'" % schema_name) " WHERE sch.nspname='%s'" % schema_name)
schema = pg_cursor.fetchone() schema = pg_cursor.fetchone()
connection.close() connection.close()