Change: don't annotate MSSQL queries.

(I got tired of chasing weird unicode issues)
This commit is contained in:
Arik Fraimovich
2016-10-05 16:29:40 +03:00
parent 707df82b40
commit 435b49fa9c

View File

@@ -23,12 +23,14 @@ types_map = {
5: TYPE_FLOAT,
}
class MSSQLJSONEncoder(JSONEncoder):
def default(self, o):
if isinstance(o, uuid.UUID):
return str(o)
return super(MSSQLJSONEncoder, self).default(o)
class SqlServer(BaseSQLQueryRunner):
noop_query = "SELECT 1"
@@ -82,6 +84,10 @@ class SqlServer(BaseSQLQueryRunner):
def type(cls):
return "mssql"
@classmethod
def annotate_query(cls):
return True
def __init__(self, configuration):
super(SqlServer, self).__init__(configuration)
@@ -115,9 +121,7 @@ class SqlServer(BaseSQLQueryRunner):
return schema.values()
def run_query(self, query):
connection = None
try: