Parse both UNION and UNION ALL
This commit is contained in:
parent
acc734d22d
commit
7576e60797
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ class UiWebsocketPlugin(object):
|
||||||
s = time.time()
|
s = time.time()
|
||||||
try:
|
try:
|
||||||
query_raw, params = query_set
|
query_raw, params = query_set
|
||||||
query_parts = query_raw.split("UNION")
|
query_parts = re.split(r"UNION(?:\s+ALL|)", query_raw)
|
||||||
for i, query_part in enumerate(query_parts):
|
for i, query_part in enumerate(query_parts):
|
||||||
db_query = DbQuery(query_part)
|
db_query = DbQuery(query_part)
|
||||||
if day_limit:
|
if day_limit:
|
||||||
|
|
Loading…
Reference in a new issue