Bug #95811 "--disable_warnings # comment" parse error

Submitted: 14 Jun 2019 10:35 Modified: 15 Jun 2019 6:27
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:Tools: MTR / mysql-test-run Severity:S7 (Test Cases)
Version:8.0 OS:Any
Assigned to: CPU Architecture:Any

[14 Jun 2019 10:35] Laurynas Biveinis
Description:
A comment on the same line as disable_warnings or enable_warnings gets misparsed.

--disable_warnings # Foo bar blah

results in

CURRENT_TEST: main.foo
mysqltest: At line 1: Extra argument 'bar blah' passed to 'enable_warnings'
safe_process[8980]: Child process: 8981, exit: 1

This must have something to do with disable_warnings/enable_warnings taking an optional warning list. It seems that this does not parse comments correctly.

How to repeat:
See above
[15 Jun 2019 6:27] MySQL Verification Team
Hello Laurynas,

Thank you for the report and feedback.

regards,
Umesh

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.