소스 검색

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

Romain Rigaux 10 년 전
부모
커밋
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: