]> granicus.if.org Git - postgresql/commit
Minor refactoring of jsonb_util.c
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 28 May 2014 20:44:31 +0000 (23:44 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 28 May 2014 20:48:02 +0000 (23:48 +0300)
commitd1d50bff247f189a6a1477596cdbd52d097089a0
treec20a56e5bafb3cfe872a3bc10d53a11d40081411
parentb3e5cfd5f979054e31d60adafd9e75bf9c38549a
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.
src/backend/utils/adt/jsonb_util.c