فهرست منبع

[phoenix] Automatically strip ; in non connector mode

Romain Rigaux 5 سال پیش
والد
کامیت
b3d73aec87
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      desktop/libs/notebook/src/notebook/connectors/sql_alchemy.py

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

@@ -223,7 +223,7 @@ class SqlAlchemyApi(Api):
     connection = engine.connect()
     connection = engine.connect()
     statement = snippet['statement']
     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']:
         self.interpreter.get('dialect_properties') and self.interpreter['dialect_properties']['trim_statement_semicolon']:
       statement = statement.strip().rstrip(';')
       statement = statement.strip().rstrip(';')