Skip to content

Commit

Permalink
Do not assume input SQL is ASCII
Browse files Browse the repository at this point in the history
Fixes #16833
  • Loading branch information
strk committed Jul 19, 2017
1 parent 462f73c commit 3120068
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3120068

Please sign in to comment.