From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Minor refactoring of jsonb_util.c |
Date: | 2014-05-28 20:52:22 |
Message-ID: | E1Wpkpi-00055T-RA@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Minor refactoring of jsonb_util.c
The only caller of compareJsonbScalarValue that needed locale-sensitive
comparison of strings was also the only caller that didn't just check for
equality. Separate the two cases for clarity: compareJsonbScalarValue now
does locale-sensitive comparison, and a new function,
equalsJsonbScalarValue, just checks for equality.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/d1d50bff247f189a6a1477596cdbd52d097089a0
Modified Files
--------------
src/backend/utils/adt/jsonb_util.c | 73 +++++++++++++++++++++---------------
1 file changed, 43 insertions(+), 30 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2014-05-28 20:55:28 | Re: pgsql: Fix bogus %name-prefix option syntax in all our Bison files. |
Previous Message | Heikki Linnakangas | 2014-05-28 19:48:49 | pgsql: Jsonb comparison bug fixes. |