mirror of
https://github.com/MariaDB/server.git
synced 2025-05-06 05:49:55 +02:00
![]() The syntax error produced on running the test engines/iuds.insert_time in PS-mode was caused by presence of the C-Style comment containing the single quote at the end of SQL statement, something like the following one: /* doesn't throw error */; Presence of the single quote was interpreted by mysqltest utility as indication of real string literal, that resulted in consuming every characters following that mark as a literal, including the delimiter character ';'. It led to concatenation of lines into a single multi-statement that was sent from mysqltest to MariaDB server for processing. In case mysqltest is run in regular mode (that is, not PS-mode), multi-statement is handled successfully on server side, but in case PS-mode is on, multi-statement is supplied in COM_STMT_PREPARE that caused the parsing error since multi-statements is not supported by statement prepare command. To fix the issue, in case mysqltest encounters the C-Style comment is should switch to reading next following characters without any processing until it hit the closing C-style comment marks '*/', with one exception if the sequence of characters '/*' followed by the exclamation mark, that means the hint introducer has been read. |
||
---|---|---|
.. | ||
delete_decimal.result | ||
delete_time.result | ||
delete_year.result | ||
insert_calendar.result | ||
insert_decimal.result | ||
insert_number.result | ||
insert_time.result | ||
insert_year.result | ||
strings_charsets_update_delete.result | ||
strings_update_delete.result | ||
type_bit_iuds.result | ||
update_decimal.result | ||
update_delete_calendar.result | ||
update_delete_number.result | ||
update_time.result | ||
update_year.result |