Prechádzať zdrojové kódy

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

Romain Rigaux 9 rokov pred
rodič
commit
67eaaec
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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: