Seems like double single-quotes and slashes are begin converted to single
single-quotes and slashes when not desired:
ERROR 2008-04-24 16:17:32 > PGRES_FATAL_ERROR: ERROR: syntax error at or near
"Cahier"
LINE 1: ..._count, compare_to_database) values ('
1969048', ''Cahier d'u...
^
Query was: insert into "public"."m_object_paper" (id, title, x_firstname,
x_lastname, char_length, word_count, grade, grade_note, overwriteflag,
is_indexed, folder, "assignment", "owner", node, page_count,
compare_to_database) values ('
1969048', ''Cahier d'un retour au pays natal' is
prinicpally defined by violence. Discuss', 'Charlotte', 'Byrne', '10937',
'1689', NULL, NULL, 't', 'f', '0', '88981', '445800', '2', NULL,
'
1000100000000000000000100000000000101');
WARN 2008-04-24 16:17:32 > waiting for resume
My fix for this was in scan.l:175
+ *cp++ = c;
*cp++ = c;
+ len += 2;
- len++;
Similar changes at lines 191, 244, and 260