summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
bfb2ef5)
For most CQL \-sequences do not produce \-sequence in resulting
CCL term. Only \" and \\ are special
if (*cp == '\\' && cp[1])
{
if (*cp == '\\' && cp[1])
{
- x[0] = cp[0];
- x[1] = cp[1];
- x[2] = '\0';
+ if (!quote_mode)
+ {
+ pr("\"", client_data);
+ quote_mode = 1;
+ }
+ if (*cp == '\"' || *cp == '\\')
+ pr("\\\"", client_data);
+ else
+ {
+ x[0] = *cp;
+ x[1] = '\0';
+ pr(x, client_data);
+ }