return without max field
This commit is contained in:
parent
6afbcb69f1
commit
ccd04ba7fb
|
@ -13,7 +13,7 @@ ARGS = {
|
||||||
}
|
}
|
||||||
|
|
||||||
SQL_STRUCT = {
|
SQL_STRUCT = {
|
||||||
"main": "SELECT search.*, max(search.file_version) FROM updates search %s GROUP BY filename;",
|
"main": "SELECT max(search.file_version) as file_version, search.* FROM updates search %s GROUP BY filename;",
|
||||||
"file_hash": "WHERE %s <= %s",
|
"file_hash": "WHERE %s <= %s",
|
||||||
"file_version": "WHERE %s <= %s",
|
"file_version": "WHERE %s <= %s",
|
||||||
"timestamp": "INNER JOIN ( SELECT file_version, file_version FROM updates WHERE %s = '%s' ) find ON search.file_version <= find.file_version"
|
"timestamp": "INNER JOIN ( SELECT file_version, file_version FROM updates WHERE %s = '%s' ) find ON search.file_version <= find.file_version"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user