Actions
Bug #21887
closedSQL parser cannot parse escaped single quote in INSERT statement
Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2009-12-27
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
When trying to import static data from EXT:static_info_tables, the script dies with typical error:
ERROR: Query could not be parsed: "SQL engine parse ERROR: No ) parenthesis in list: near "Andorra', 'Principality of Andorra', 'Andorra la Vella', 'ad', 'EUR', '978', '376', '0', '1', '0', 'Andorra', 'Andorra', '1') "". Query: "INSERT INTO static_countries VALUES ('1', '0', '0', 'AD', 'AND', '20', '39', 'Principat d\'Andorra', 'Principality of Andorra', 'Andorra la Vella', 'ad', 'EUR', '978', '376', '0', '1', '0', 'Andorra', 'Andorra', '1');"
This is cause by the escaped single quote in "Principat d\'Andorra"
(issue imported from #M13104)
Files
Actions