| From: | Jean-Christophe Arnu <jcarnu(at)gmail(dot)com> |
|---|---|
| To: | Artur Zakirov <zaartur(at)gmail(dot)com> |
| Cc: | Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Empty string in lexeme for tsvector |
| Date: | 2021-09-26 20:41:13 |
| Message-ID: | CAHZmTm27jKrVNa=g0B8wTUYdjZye=+4_zckfmV81-tOJdWae=g@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Le dim. 26 sept. 2021 à 15:55, Artur Zakirov <zaartur(at)gmail(dot)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 | Content-Type | Size |
|---|---|---|
| empty_string_in_tsvector_v3.patch | text/x-patch | 6.1 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David E. Wheeler | 2021-09-26 21:32:11 | When is int32 not an int32? |
| Previous Message | Nikolay Samokhvalov | 2021-09-26 20:39:48 | Re: Add create and update timestamp to all objects |