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

From Artur Zakirov
Subject Re: Empty string in lexeme for tsvector
Date
Msg-id CAKNkYnyTcWsDdkmvXhgF-sZYJie3Bqr+DKQpRBtzmAur2k9i_Q@mail.gmail.com
Whole thread Raw
In response to Re: Empty string in lexeme for tsvector  (Jean-Christophe Arnu <jcarnu@gmail.com>)
Responses Re: Empty string in lexeme for tsvector  (Jean-Christophe Arnu <jcarnu@gmail.com>)
List pgsql-hackers
On Fri, Sep 24, 2021 at 2:39 PM Jean-Christophe Arnu <jcarnu@gmail.com> wrote:
> Here's a new patch file taking your comments into account.

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;

-- 
Artur



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: extended stats on partitioned tables
Next
From: Justin Pryzby
Date:
Subject: Re: typos (and more)