rpn2cql: handle \\ sequence
authorAdam Dickmeiss <adam@indexdata.dk>
Sat, 27 Aug 2011 22:09:38 +0000 (00:09 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Sat, 27 Aug 2011 22:09:38 +0000 (00:09 +0200)
src/rpn2cql.c

index 03963f4..aef1cfd 100644 (file)
@@ -238,7 +238,7 @@ static int rpn2cql_simple(cql_transform_t ct,
                 if (sterm[i] == '\\' && i < lterm - 1)
                 {
                     i++;
-                    if (strchr("*?\"", sterm[i]))
+                    if (strchr("*?\"\\", sterm[i]))
                         wrbuf_putc(w, '\\');
                     wrbuf_putc(w, sterm[i]);
                 }