mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-02 19:29:27 +00:00
fix(MainDb): LIMIT -1 is not supported by Mysql
This commit is contained in:
parent
d42cc8a39b
commit
20a64ff1e3
1 changed files with 1 additions and 1 deletions
|
|
@ -1870,7 +1870,7 @@ static inline string blobToString (soci::blob &in) {
|
|||
if (end > 0)
|
||||
query += " LIMIT " + Utils::toString(end - begin);
|
||||
else
|
||||
query += " LIMIT -1";
|
||||
query += " LIMIT 9999999999999999999"; // For Mysql compatibility, do not set -1.
|
||||
|
||||
if (begin > 0)
|
||||
query += " OFFSET " + Utils::toString(begin);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue