| Bug #69090 | Trigger bodies containing the "\" character are returned unescaped | ||
|---|---|---|---|
| Submitted: | 29 Apr 2013 4:53 | Modified: | 29 Apr 2013 7:46 |
| Reporter: | Stian Brattland | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Information schema | Severity: | S2 (Serious) |
| Version: | 5.1.69-0ubuntu0.10.04.1 | OS: | Linux (Ubuntu 10.04) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | DDL | ||
[29 Apr 2013 4:53]
Stian Brattland
[29 Apr 2013 7:46]
MySQL Verification Team
Hello Stian, Thank you for the report. Verified as described on 5.6.11( WB 5.2.47) Thanks, Umesh
[29 Apr 2013 7:51]
MySQL Verification Team
How to repeat:
This can be easily repeatable on OEL6, MySQL 5.6.11
1. Install MySQL workbench (latest version 5.2.47)
2. Create a database and a table.
CREATE TABLE account (acct_num INT, amount DECIMAL(10,2), audit varchar(50));
3. trigger on the table.
delimiter //
CREATE TRIGGER upd_check BEFORE UPDATE ON account
FOR EACH ROW
BEGIN
IF NEW.amount < 0 THEN
SET NEW.amount = 0, NEW.AUDIT = "\\";
ELSEIF NEW.amount > 100 THEN
SET NEW.amount = 100, NEW.AUDIT = "\\";
END IF;
END;//
delimiter ;
4. Open MySQL workbench, connect to the database and locate the table.
5. Right click on the table and select "Alter Table...".
6. Error message will pop up
