mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Fix query
This commit is contained in:
parent
fe63f52c9e
commit
3556343cb2
@ -128,9 +128,9 @@ def get_fun(fun):
|
||||
|
||||
cur = serv.cursor()
|
||||
sql = '''SELECT s.id, s.fun, s.jid
|
||||
FROM `salt_returns` s
|
||||
FROM `salt`.`salt_returns` s
|
||||
JOIN ( SELECT MAX(`jid`) as jid
|
||||
from `salt_returns` GROUP BY fun, id) max
|
||||
from `salt`.`salt_returns` GROUP BY fun, id) max
|
||||
ON s.jid = max.jid
|
||||
WHERE `fun` = '%s'
|
||||
GROUP BY id
|
||||
|
Loading…
Reference in New Issue
Block a user