mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
varstr_cmp and any comparison function that piggybacks on it can return
any negative or positive number, not just -1 or 1. Fix comment on varstr_cmp and citext test case accordingly. As pointed out by Zdenek Kotala, and buildfarm member gothic moth.
This commit is contained in:
@ -90,7 +90,7 @@ SELECT 'aardvark'::citext = 'aardVark'::citext AS t;
|
||||
SELECT citext_cmp('aardvark'::citext, 'aardvark'::citext) AS zero;
|
||||
SELECT citext_cmp('aardvark'::citext, 'aardVark'::citext) AS zero;
|
||||
SELECT citext_cmp('AARDVARK'::citext, 'AARDVARK'::citext) AS zero;
|
||||
SELECT citext_cmp('B'::citext, 'a'::citext) AS one;
|
||||
SELECT citext_cmp('B'::citext, 'a'::citext) > 0 AS true;
|
||||
|
||||
-- Do some tests using a table and index.
|
||||
|
||||
|
Reference in New Issue
Block a user