1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-08 06:02:22 +03:00

Use '' rather than \' for literal single quotes in strings in

/contrib/tsearch2.

Teodor Sigaev
This commit is contained in:
Bruce Momjian
2006-09-02 22:03:30 +00:00
parent 4b636e35a5
commit 0c4f2894f9
3 changed files with 43 additions and 28 deletions

View File

@@ -604,7 +604,7 @@ findoprnd(ITEM * ptr, int4 *pos)
* input
*/
static QUERYTYPE *
queryin(char *buf, void (*pushval) (QPRS_STATE *, int, char *, int, int2), int cfg_id, bool isplain)
queryin(char *buf, void (*pushval) (QPRS_STATE *, int, char *, int, int2), int cfg_id, bool isplain)
{
QPRS_STATE state;
int4 i;
@@ -748,7 +748,7 @@ infix(INFIX * in, bool first)
{
if ( t_iseq(op, '\'') )
{
*(in->cur) = '\\';
*(in->cur) = '\'';
in->cur++;
}
COPYCHAR(in->cur,op);