fix query behaviour when limit is present (reported by @Mazin)

This commit is contained in:
Doug Hoyte
2023-02-21 16:42:45 -05:00
parent e5e5ff6817
commit 5175664e2f
11 changed files with 417 additions and 447 deletions

View File

@ -103,3 +103,9 @@ uint64_t getDBVersion(lmdb::txn &txn) {
return dbVersion;
}
std::string padBytes(std::string_view str, size_t n, char padChar) {
if (str.size() > n) throw herr("unable to pad, string longer than expected");
return std::string(str) + std::string(n - str.size(), padChar);
}