From: | nblxa(at)mail(dot)ru |
---|---|
To: | pgsql-bugs(at)postgresql(dot)org |
Subject: | BUG #14688: Wrong results in LIKE operation on JSON Type |
Date: | 2017-06-05 07:18:22 |
Message-ID: | 20170605071822.1453.53540@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 14688
Logged by: Ilya Kopylov
Email address: nblxa(at)mail(dot)ru
PostgreSQL version: 9.6.0
Operating system: Windows 8.1
Description:
When JSON contains '\\' symbol, then operator '=' works well, but operator
'LIKE' return wrong result.
SELECT '{"Name":"Domen\\Ivan"}'::json ->> 'Name' = 'Domen\Ivan'; -- yields
true
SELECT '{"Name":"Domen\\Ivan"}'::json ->> 'Name' LIKE 'Domen\Ivan'; --
yields false
SELECT '{"Name":"Domen\\Ivan"}'::json ->> 'Name' LIKE 'Domen\\Ivan'; --
yields true
When I search with 'LIKE' operator and adding '\' symbol, when got result. I
think whis is bug.
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2017-06-05 08:23:43 | Re: BUG #14687: pg_xlogdump does only count "main data" for record length and leading to incorrect statistics |
Previous Message | Andres Freund | 2017-06-05 02:25:11 | Re: BUG #14687: pg_xlogdump does only count "main data" for record length and leading to incorrect statistics |