浏览代码

HUE-3334 [editor] Skip checking for multi queries if there is no semi colon

Romain Rigaux 9 年之前
父节点
当前提交
67eaaec
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      apps/beeswax/src/beeswax/design.py

+ 3 - 0
apps/beeswax/src/beeswax/design.py

@@ -245,6 +245,9 @@ def split_statements(hql):
   between_quotes = None
   is_comment = None
 
+  if hql.find(';') in (-1, len(hql) - 1):
+    return [hql]
+
   lines = hql.splitlines()
 
   for line in lines: