Closed (fixed)
Project:
Importer
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Jul 2010 at 09:07 UTC
Updated:
24 Sep 2010 at 08:40 UTC
Importing fails when trying to import a csv file which looks something like the following:
Id;Name
223;"D'land"
The Name contains a single quote ' and the resulting SQL command looks like this:
INSERT INTO {import_ct_clients} (Id, Name) VALUES(223,'D'land');
This obviously fails because of the extra quote in the statement... The fix I'm guessing is to automatically escape any existing quotes (addslashes function?).
Ben
Comments
Comment #1
kartelusm commentedYes, tnx. I'll implement utf8_encode(addslashes(...)) line for the text field in the next release.
Comment #2
kartelusm commented