mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Change: don't annotate MSSQL queries.
(I got tired of chasing weird unicode issues)
This commit is contained in:
parent
ad5e4f46d6
commit
4462afc670
@ -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):
|
||||
@classmethod
|
||||
def configuration_schema(cls):
|
||||
@ -80,6 +82,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)
|
||||
|
||||
@ -113,9 +119,7 @@ class SqlServer(BaseSQLQueryRunner):
|
||||
|
||||
return schema.values()
|
||||
|
||||
|
||||
def run_query(self, query):
|
||||
|
||||
connection = None
|
||||
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user