mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
Remove query encoding.
Do not have to encode query. `execute()` take an unicode query arguments in pyodbc.
This commit is contained in:
@@ -143,10 +143,6 @@ class SQLServerODBC(BaseSQLQueryRunner):
|
||||
user,
|
||||
password)
|
||||
connection = pyodbc.connect(connection_string)
|
||||
|
||||
if isinstance(query, unicode):
|
||||
query = query.encode(charset)
|
||||
|
||||
cursor = connection.cursor()
|
||||
logger.debug("SqlServer running query: %s", query)
|
||||
cursor.execute(query)
|
||||
|
||||
Reference in New Issue
Block a user