Skip to content

Commit

Permalink
Setting the proper precision
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Mar 29, 2017
1 parent 50769c9 commit cbbf716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def upgrade():
op.add_column(
'query',
sa.Column('start_running_time',
sa.Numeric(precision=3),
sa.Numeric(precision=20, scale=6),
nullable=True))


Expand Down
3 changes: 2 additions & 1 deletion superset/sql_lab.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ def handle_error(msg):
query.status = QueryStatus.RUNNING
query.start_running_time = utils.now_as_float()
session.merge(query)
session.flush()
session.commit()
logging.info("Set query to 'running'")

engine = database.get_sqla_engine(schema=query.schema)
conn = engine.raw_connection()
Expand Down

0 comments on commit cbbf716

Please sign in to comment.