*/
/**
* \file cql2ccl.c
- * \brief Implements CQL to XCQL conversion.
+ * \brief Implements CQL to CCL conversion.
*/
#if HAVE_CONFIG_H
#include <config.h>
}
cp++;
if (*cp == '\"' || *cp == '\\')
- pr("\\\"", client_data);
- else
- {
- x[0] = *cp;
- x[1] = '\0';
- pr(x, client_data);
- }
+ pr("\\", client_data);
+ x[0] = *cp;
+ x[1] = '\0';
+ pr(x, client_data);
}
else if (*cp == '*')
{
if (!strcmp(n->u.st.relation, "<="))
distance = atoi(n->u.st.term);
else if (!strcmp(n->u.st.relation, "<"))
- distance = atoi(n->u.st.term) - 1;
+ distance = atoi(n->u.st.term) - 1;
else
return -1;
}
YAZ_CHECK(tst_query("a b", "\"a\" \"b\""));
YAZ_CHECK(tst_query("ab bc", "\"ab\" \"bc\""));
- YAZ_CHECK(tst_query("\\\\", "\"\\\"\""));
- YAZ_CHECK(tst_query("\\\"", "\"\\\"\""));
+ YAZ_CHECK(tst_query("\\\\", "\"\\\\\""));
+ YAZ_CHECK(tst_query("\\\"", "\"\\\"\""));
+ YAZ_CHECK(tst_query("\\x" , "\"x\""));
YAZ_CHECK(tst_query("\\*", "\"*\""));
YAZ_CHECK(tst_query("\"\\*\"", "\"*\""));