backend/server/rhnSQL/driver_cx_Oracle.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit b3868d7bb2a18c864bbfc809feaae9c8755eb045
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Wed Jun 30 17:00:21 2010 +0200
We now call prepare with params for PostgreSQL, for Oracle we will take the parameter
and ignore it.
diff --git a/backend/server/rhnSQL/driver_cx_Oracle.py
b/backend/server/rhnSQL/driver_cx_Oracle.py
index 4ea0096..719ca38 100644
--- a/backend/server/rhnSQL/driver_cx_Oracle.py
+++ b/backend/server/rhnSQL/driver_cx_Oracle.py
@@ -431,7 +431,7 @@ class Database(sql_base.Database):
return self._cursor_class(dbh=self.dbh)
# pass-through functions for when you want to do SQL yourself
- def prepare(self, sql, force=0):
+ def prepare(self, sql, force=0, params=None):
# Abuse the map calls to get rid of SQL comments and extra spaces
sql = string.join(filter(lambda a: len(a),
map(string.strip,