Skip to content

Commit

Permalink
[issue] Resolving issue 2530 (apache#3865)
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored and mistercrunch committed Nov 15, 2017
1 parent ba89b2d commit 2e25fc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/connectors/sqla/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from flask_babel import lazy_gettext as _
import pandas as pd
from past.builtins import basestring
import six
import sqlalchemy as sa
from sqlalchemy import (
and_, asc, Boolean, Column, DateTime, desc, ForeignKey, Integer, or_,
Expand Down Expand Up @@ -319,7 +320,7 @@ def get_template_processor(self, **kwargs):
def get_query_str(self, query_obj):
engine = self.database.get_sqla_engine()
qry = self.get_sqla_query(**query_obj)
sql = str(
sql = six.text_type(
qry.compile(
engine,
compile_kwargs={'literal_binds': True},
Expand Down

0 comments on commit 2e25fc4

Please sign in to comment.