Re: Empty string in lexeme for tsvector - Mailing list pgsql-hackers

From Jean-Christophe Arnu
Subject Re: Empty string in lexeme for tsvector
Date
Msg-id CAHZmTm27jKrVNa=g0B8wTUYdjZye=+4_zckfmV81-tOJdWae=g@mail.gmail.com
Whole thread Raw
In response to Re: Empty string in lexeme for tsvector  (Artur Zakirov <zaartur@gmail.com>)
Responses Re: Empty string in lexeme for tsvector
List pgsql-hackers


Le dim. 26 sept. 2021 à 15:55, Artur Zakirov <zaartur@gmail.com> a écrit :
Nice catch! The patch looks good to me.
Can you also add a more general test case:

=# SELECT $$'' '1' '2'$$::tsvector;
ERROR:  syntax error in tsvector: "'' '1' '2'"
LINE 1: SELECT $$'' '1' '2'$$::tsvector;


Thank you, Artur for spotting this test.
It is now included into this patch.
 
--
Jean-Christophe Arnu
Attachment

pgsql-hackers by date:

Previous
From: Nikolay Samokhvalov
Date:
Subject: Re: Add create and update timestamp to all objects
Next
From: "David E. Wheeler"
Date:
Subject: When is int32 not an int32?