Skip to content
Permalink
Browse files

Do not assume input SQL is ASCII

Fixes #16833
  • Loading branch information
strk committed Jul 19, 2017
1 parent 462f73c commit 3120068bf108e8929189cd560435f778290a648d
@@ -78,7 +78,7 @@ def _execute(self, cursor, sql):
if cursor is None:
cursor = self._get_cursor()
try:
cursor.execute(str(sql))
cursor.execute(sql)

except self.connection_error_types() as e:
raise ConnectionError(e)
@@ -144,7 +144,7 @@ def __init__(self, db, sql, parent=None):

t = QTime()
t.start()
c = self.db._execute(None, unicode(sql))
c = self.db._execute(None, sql)
self._secs = t.elapsed() / 1000.0
del t

0 comments on commit 3120068

Please sign in to comment.
You can’t perform that action at this time.