summaryrefslogtreecommitdiff
path: root/mysql-test/main/parser.result
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.4 into 10.5Marko Mäkelä2021-01-251-0/+9
|\
| * Merge 10.3 into 10.4Marko Mäkelä2021-01-251-0/+9
| |\
| | * MDEV-23666: Assertion `m_cpp_buf <= ptr && ptr <= m_cpp_buf + m_buf_length' ↵Dmitry Shulga2021-01-141-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | failed in Lex_input_stream::body_utf8_append On parsing statements for which a starting backtick (`) delimiter doesn't have a corresponding ending backtick, a current pointer to a position inside a pre-processed buffer could go beyond the end of the buffer. This bug report caused by the commit d4967659032b18a5504198b41dd3d0a1813d79ef "MDEV-22022 Various mangled SQL statements will crash 10.3 to 10.5 debug builds". In order to fix the issue both pointers m_ptr and m_cpp_ptr must be rolled back to previous position in raw input and pre-processed input streams correspondingly in case end of query reached during parsing.
* | | Merge 10.4 into 10.5Marko Mäkelä2020-10-301-1/+18
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2020-10-291-1/+18
| |\ \ | | |/
| | * Merge 10.2 into 10.3Marko Mäkelä2020-10-281-1/+18
| | |
* | | Merge 10.4 into 10.5Marko Mäkelä2020-09-041-0/+89
|\ \ \ | |/ /
| * | MDEV-23094: Multiple calls to a Stored Procedure from another Stored ↵bb-10.4-MDEV-23094Oleksandr Byelkin2020-08-311-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | Procedure crashes server Added system-SELECT to IF/WHILE/REPET/FOR for correct subqueries connecting. Added control of system/usual selects for correct error detection.
* | | Merge 10.4 into 10.5Marko Mäkelä2020-08-101-0/+7
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2020-08-101-0/+7
| |\ \ | | |/
| | * MDEV-22022 Various mangled SQL statements will crash 10.3 to 10.5 debug buildsAlexander Barkov2020-08-041-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lex_input_stream::scan_ident_delimited() could go beyond the end of the input when a starting backtick (`) delimiter did not have a corresponding ending backtick. Fix: catch the case when yyGet() returns 0, which means either eof-of-query or straight 0x00 byte inside backticks, and make the parser fail on syntax error, displaying the left backtick as the syntax error place. In case of filename in a script like this: SET CHARACTER_SET_CLIENT=17; -- 17 is 'filename' SELECT doc.`Children`.0 FROM t1; the ending backtick was not recognized as such because my_charlen() returns 0 for a straight backtick (backticks must normally be encoded as @0060 in filename). The same fix works for 'filename': the execution skips the backtick and reaches the end of the query, then yyGet() returns 0. This fix is OK for now. But eventually 'filename' should either be disallowed as a parser character set, or fixed to handle encoded punctuation properly.
* | | Merge 10.4 into 10.5Marko Mäkelä2020-08-011-0/+8
|\ \ \ | |/ /
| * | MDEV-21998: Server crashes in st_select_lex::add_table_to_list upon mix of ↵Oleksandr Byelkin2020-07-281-0/+8
| | | | | | | | | | | | | | | | | | | | | KILL and sequences Continue support the hack of current select equal builtin select if selects stack is empty even after subselects.
* | | Merge 10.4 into 10.5Marko Mäkelä2020-07-231-0/+55
|\ \ \ | |/ /
| * | MDEV-21997 Server crashes in LEX::create_item_ident_sp upon use of unknown ↵Oleksandr Byelkin2020-07-221-0/+55
| | | | | | | | | | | | | | | | | | identifier If there is no current_select and variable is not found among SP variables it can be only an error.
* | | Merge 10.4 into 10.5Marko Mäkelä2020-07-151-10/+5
|\ \ \ | |/ /
| * | Merge 10.3 into 10.4Marko Mäkelä2020-07-151-10/+5
| |\ \ | | |/
| | * Merge 10.2 into 10.3Marko Mäkelä2020-07-141-10/+5
| | |
* | | MDEV-16978 Application-time periods: WITHOUT OVERLAPSNikita Malyavin2020-03-311-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * The overlaps check is implemented on a handler level per row command. It creates a separate cursor (actually, another handler instance) and caches it inside the original handler, when ha_update_row or ha_insert_row is issued. Cursor closes on unlocking the handler. * Containing the same key in index means unique constraint violation even in usual terms. So we fetch left and right neighbours and check that they have same key prefix, excluding from the key only the period part. If it doesnt match, then there's no such neighbour, and the check passes. Otherwise, we check if this neighbour intersects with the considered key. * The check does not introduce new error and fails with ER_DUPP_KEY error. This might break REPLACE workflow and should be fixed separately
* | | Merge branch '10.4' into 10.5Oleksandr Byelkin2020-03-111-0/+36
|\ \ \ | |/ /
| * | MDEV-21684: mysqld crash with signal 11 when renaming table+max_statement_timebb-10.4-MDEV-21684Oleksandr Byelkin2020-02-261-0/+36
| | | | | | | | | | | | Main select should be pushed first in case of SET STATEMENT.
* | | Merge 10.4 into 10.5Marko Mäkelä2020-02-071-0/+10
|\ \ \ | |/ /
| * | MDEV-21616: Server crash when using "SET STATEMENT max_statement_time=0 FOR ↵Oleksandr Byelkin2020-02-051-0/+10
| | | | | | | | | | | | | | | | | | desc xxx" lead to collapse Main select should be pushed first.
* | | MDEV-20735 Allow non-reserved keywords as user defined type namesAlexander Barkov2019-10-031-0/+31
| | |
* | | MDEV-20734 Allow reserved keywords as user defined type namesAlexander Barkov2019-10-031-0/+13
|/ /
* | MDEV-19956 Queries with subqueries containing UNION are not parsedIgor Babaev2019-09-231-1/+1
| | | | | | | | | | | | | | | | Shift-Reduce conflicts prevented parsing some queries with subqueries that used set operations when the subqueries occurred in expressions or in IN predicands. The grammar rules for query expression were transformed in order to avoid these conflicts. New grammar rules employ an idea taken from MySQL 8.0.
* | MDEV-20108: [ERROR] mysqld got signal 11 in st_select_lex::add_table_to_listbb-10.4-MDEV-20108Oleksandr Byelkin2019-07-241-0/+13
| | | | | | | | Use the same select as for usual table list.
* | MDEV-19540: 10.4 allow lock options with SELECT in brackets which previous ↵bb-10.4-MDEV-19540Oleksandr Byelkin2019-05-211-0/+15
| | | | | | | | | | | | version do not Check locking options and brackets combinations.
* | Merge 10.3 into 10.4Marko Mäkelä2018-11-191-0/+65
|\ \ | |/
| * MDEV-17693 Shift/reduce conflicts for NAMES,ROLE,PASSWORD in the ↵Alexander Barkov2018-11-131-0/+65
| | | | | | | | option_value_no_option_type grammar
* | Merge 10.3 into 10.4mariadb-10.4.0Marko Mäkelä2018-11-081-0/+21
|\ \ | |/
| * MDEV-16697: Fix difference between 32bit/windows and 64bit systems in ↵Oleksandr Byelkin2018-11-071-0/+21
| | | | | | | | allowed select nest level
* | MDEV-11953: support of brackets in UNION/EXCEPT/INTERSECT operationsOleksandr Byelkin2018-07-041-21/+25
|/
* MDEV-16202 Latest changes made erroneously some keywords reserved in ↵Alexander Barkov2018-05-171-0/+331
| | | | sql_mode=ORACLE
* Create 'main' test directory and move 't' and 'r' thereMichael Widenius2018-03-291-0/+1351