mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge bodhi.local:/opt/local/work/tmp_merge
into bodhi.local:/opt/local/work/mysql-5.1-runtime-merge
This commit is contained in:
@@ -127,6 +127,7 @@ void lex_start(THD *thd, const uchar *buf, uint length)
|
||||
lex->param_list.empty();
|
||||
lex->view_list.empty();
|
||||
lex->prepared_stmt_params.empty();
|
||||
lex->auxiliary_table_list.empty();
|
||||
lex->unit.next= lex->unit.master=
|
||||
lex->unit.link_next= lex->unit.return_to= 0;
|
||||
lex->unit.prev= lex->unit.link_prev= 0;
|
||||
@@ -1060,6 +1061,30 @@ int MYSQLlex(void *arg, void *yythd)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Skip comment in the end of statement.
|
||||
|
||||
SYNOPSIS
|
||||
skip_rear_comments()
|
||||
begin pointer to the beginning of statement
|
||||
end pointer to the end of statement
|
||||
|
||||
DESCRIPTION
|
||||
The function is intended to trim comments at the end of the statement.
|
||||
|
||||
RETURN
|
||||
Pointer to the last non-comment symbol of the statement.
|
||||
*/
|
||||
|
||||
uchar *skip_rear_comments(uchar *begin, uchar *end)
|
||||
{
|
||||
while (begin < end && (end[-1] <= ' ' || end[-1] == '*' ||
|
||||
end[-1] == '/' || end[-1] == ';'))
|
||||
end-= 1;
|
||||
return end;
|
||||
}
|
||||
|
||||
/*
|
||||
st_select_lex structures initialisations
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user