From 02f531c609aa7e2ce8ec7e0daf9973a087a6b0f4 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 --- library/postgresql_user | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/postgresql_user b/library/postgresql_user index 2f71574ed4c..95e0162ae67 100644 --- a/library/postgresql_user +++ b/library/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]