Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.6.24
-
None
-
None
Description
When writing test cases in mysqltest that include a REPLACE() function where the replacement string is a backslash (), the parser throws a syntax error
TestCase:
let $rp21 = $(replace("path/to/file", "/", "\\")); |
-- echo replace("path/to/file", "/", "\\") -> $rp21; |
Mysqltest output:
CURRENT_TEST: main.rep1
|
mysqltest: At line 1: Syntax error: Unmatched quote in expression |
Server output:
MariaDB [(none)]> select replace("path/to/file", "/", "\\"); |
+------------------------------------+ |
| replace("path/to/file", "/", "\\") | |
+------------------------------------+ |
| path\to\file | |
+------------------------------------+ |
1 row in set (0.001 sec) |
Attachments
Issue Links
- relates to
-
MDEV-36107 expressions in mysqltest
-
- Open
-