]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix misleading comment for GetOperatorFromCompareType
authorDavid Rowley <drowley@postgresql.org>
Tue, 6 Jan 2026 02:16:14 +0000 (15:16 +1300)
committerDavid Rowley <drowley@postgresql.org>
Tue, 6 Jan 2026 02:16:14 +0000 (15:16 +1300)
commite8d4e94a47ea0f02e180208ec7daf03bdd2f751e
treee1fe8c6f1510b35881a6ae284de2cd1447f13a49
parentb9ee5f2dcba2ae2e6bfca6c873fb2708970f2c81
Fix misleading comment for GetOperatorFromCompareType

The comment claimed *strat got set to InvalidStrategy when the function
lookup fails.  This isn't true; an ERROR is raised when that happens.

Author: Paul A Jungwirth <pj@illuminatedcomputing.com>
Reviewed-by: Neil Chen <carpenter.nail.cz@gmail.com>
Discussion: https://postgr.es/m/CA+renyXOrjLacP_nhqEQUf2W+ZCoY2q5kpQCfG05vQVYzr8b9w@mail.gmail.com
Backpatch-through: 18
src/backend/commands/indexcmds.c