Browse Source

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

Romain Rigaux 9 years ago
parent
commit
67eaaec
1 changed files with 3 additions and 0 deletions
  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: