summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorVicențiu Ciorbaru <vicentiu@mariadb.org>2021-04-16 20:02:10 +0300
committerVicențiu Ciorbaru <vicentiu@mariadb.org>2021-04-21 14:09:17 +0300
commit44a6af65f56ccbcb9a7ca6ba1d021a2b23c07666 (patch)
tree9d295db7b45e3a6222d871ace68dbb67cc62273a /sql/sql_lex.cc
parent299b93532036152ef47d6fa140199e2fc01dfecb (diff)
downloadmariadb-git-44a6af65f56ccbcb9a7ca6ba1d021a2b23c07666.tar.gz
MDEV-25430: ROW | ROWS should be a required keyword after OFFSET start
Implemented according to standard OFFSET start { ROW | ROWS}, ROW and ROWS is mandatory after OFFSET.
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 2d652a194d6..4b76d9684df 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -3789,6 +3789,7 @@ void st_select_lex::print_limit(THD *thd,
{
str->append(STRING_WITH_LEN(" offset "));
limit_params.offset_limit->print(str, query_type);
+ str->append(STRING_WITH_LEN(" rows "));
}
str->append(STRING_WITH_LEN(" fetch first "));
limit_params.select_limit->print(str, query_type);