From 329b2c63d98dd9e54eb5ad4b7978e8db6a6b08c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Sipma?= Date: Sat, 5 Jan 2013 19:31:31 +0100 Subject: [PATCH] remove quotes in has_table_privilege and has_database_privilege --- postgresql_user | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postgresql_user b/postgresql_user index 2f71574ed4c..95e0162ae67 100644 --- a/postgresql_user +++ b/postgresql_user @@ -185,7 +185,7 @@ def user_delete(cursor, user): return True def has_table_privilege(cursor, user, table, priv): - query = 'SELECT has_table_privilege(\'%s\', \'%s\', \'%s\')' + query = 'SELECT has_table_privilege(%s, %s, %s)' cursor.execute(query, (user, table, priv)) return cursor.fetchone()[0] @@ -235,7 +235,7 @@ def get_database_privileges(cursor, user, db): return o def has_database_privilege(cursor, user, db, priv): - query = 'SELECT has_database_privilege(\'%s\', \'%s\', \'%s\')' + query = 'SELECT has_database_privilege(%s, %s, %s)' cursor.execute(query, (user, db, priv)) return cursor.fetchone()[0]