|
|
@@ -205,7 +205,7 @@ class SqlAlchemyApi(Api):
|
|
|
statement = snippet['statement']
|
|
|
|
|
|
if self.options['url'].startswith('presto://') or \
|
|
|
- self.interpreter.get('dialect_properties') and interpreter['dialect_properties']['trim_statement_semicolon']:
|
|
|
+ self.interpreter.get('dialect_properties') and self.interpreter['dialect_properties']['trim_statement_semicolon']:
|
|
|
statement = statement.strip().rstrip(';')
|
|
|
|
|
|
result = connection.execute(statement)
|