未验证 提交 9c675e50 编写于 作者: A alexey-milovidov 提交者: GitHub

Merge pull request #6963 from nicelulu/issue_6616

optimize limit 1,0 and test.
......@@ -790,7 +790,7 @@ static std::pair<UInt64, UInt64> getLimitLengthAndOffset(const ASTSelectQuery &
if (query.limitLength())
{
length = getLimitUIntValue(query.limitLength(), context);
if (query.limitOffset())
if (query.limitOffset() && length)
offset = getLimitUIntValue(query.limitOffset(), context);
}
......
SELECT count() FROM system.numbers LIMIT 1, 0;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册