Improve logging. Fix /sql limit.

This commit is contained in:
AB
2021-01-11 11:12:38 +03:00
parent 0d24976ec2
commit a48e25800c
2 changed files with 7 additions and 7 deletions

View File

@ -143,7 +143,7 @@ impl Execute for Sql {
}
res.push(tmp);
}
if res.len() > 100 {
if res.len() >= 100 {
return Err(Error::SQLResultTooLong(
"SQL result too long. Lines limit is 100. Use LIMIT".to_string(),
));