Commit 20a64ff1 authored by Ronan's avatar Ronan
Browse files

fix(MainDb): LIMIT -1 is not supported by Mysql

parent d42cc8a3
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment