-
-
Notifications
You must be signed in to change notification settings - Fork 512
Closed
Labels
bugDefective behaviour in HeidiSQLDefective behaviour in HeidiSQLconfirmedIssue verified by project memberIssue verified by project member
Milestone
Description
Steps to reproduce this issue
- Create/access a table with a backslash in the enum value -
CREATE TABLE x (c ENUM('\\foo','\\bar'))
- Attempt to insert/update a row with a value with a backslash through the data tab
Current behavior
HeidiSQL double-escapes the input, leading to the query INSERT INTO `test`.`x` (`c`) VALUES ('\\\\foo');
and /* SQL Error (1265): Data truncated for column 'c' at row 1 */
Expected behavior
HeidiSQL should generate the query INSERT INTO `test`.`x` (`c`) VALUES ('\\foo');
, which is successful when run manually
Possible solution
The enum value is escaped for backslashes twice (or once too many). Possibly similar to #690.
Environment
Metadata
Metadata
Assignees
Labels
bugDefective behaviour in HeidiSQLDefective behaviour in HeidiSQLconfirmedIssue verified by project memberIssue verified by project member