backend/server/rhnSQL/driver_cx_Oracle.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7c5552b1f44df01a3a5e0f3b15c29b5a586d0594
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Jul 30 10:25:47 2010 +0200
619699 - do not blow out if we get unicode string
diff --git a/backend/server/rhnSQL/driver_cx_Oracle.py b/backend/server/rhnSQL/driver_cx_Oracle.py
index 07e217f..9e05714 100644
--- a/backend/server/rhnSQL/driver_cx_Oracle.py
+++ b/backend/server/rhnSQL/driver_cx_Oracle.py
@@ -86,7 +86,7 @@ class Cursor(sql_base.Cursor):
return cursor
def _execute_wrapper(self, function, *p, **kw):
- params = ','.join(["%s: %s" % (str(key), str(value)) for key, value \
+ params = ','.join(["%s: %s" % (repr(key), repr(value)) for key, value \
in kw.items()])
log_debug(5, "Executing SQL: \"%s\" with bind params: {%s}"
% (self.sql, params))