Forráskód Böngészése

[phoenix] Automatically strip ; in non connector mode

Romain Rigaux 5 éve
szülő
commit
b3d73aec87

+ 1 - 1
desktop/libs/notebook/src/notebook/connectors/sql_alchemy.py

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