Skip to content

Commit

Permalink
Renaming SQL Server to SQL Server ODBC
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuyui committed Sep 15, 2017
1 parent 4fbfa68 commit ba7ed5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions redash/query_runner/mssql_odbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def annotate_query(cls):
return False

def __init__(self, configuration):
super(SqlServer, self).__init__(configuration)
super(SQLServerODBC, self).__init__(configuration)

def _get_tables(self, schema):
query = """
Expand Down Expand Up @@ -127,7 +127,7 @@ def run_query(self, query, user):
password)
connection = pyodbc.connect(connection_string)
cursor = connection.cursor()
logger.debug("SqlServer running query: %s", query)
logger.debug("SQLServerODBC running query: %s", query)
cursor.execute(query)
data = cursor.fetchall()

Expand Down Expand Up @@ -163,4 +163,4 @@ def run_query(self, query, user):

return json_data, error

register(SqlServer)
register(SQLServerODBC)

0 comments on commit ba7ed5c

Please sign in to comment.