mirror of
https://github.com/postgres/postgres.git
synced 2026-06-13 18:50:17 -04:00
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> Discussion: https://postgr.es/m/CA+renyXOrjLacP_nhqEQUf2W+ZCoY2q5kpQCfG05vQVYzr8b9w@mail.gmail.com Backpatch-through: 18
This commit is contained in:
parent
b86c2b712b
commit
9ba5d40e90
1 changed files with 2 additions and 2 deletions
|
|
@ -2440,8 +2440,8 @@ GetDefaultOpClass(Oid type_id, Oid am_id)
|
|||
* Finds an operator from a CompareType. This is used for temporal index
|
||||
* constraints (and other temporal features) to look up equality and overlaps
|
||||
* operators. We ask an opclass support function to translate from the
|
||||
* compare type to the internal strategy numbers. If the function isn't
|
||||
* defined or it gives no result, we set *strat to InvalidStrategy.
|
||||
* compare type to the internal strategy numbers. Raises ERROR on search
|
||||
* failure.
|
||||
*/
|
||||
void
|
||||
GetOperatorFromCompareType(Oid opclass, Oid rhstype, CompareType cmptype,
|
||||
|
|
|
|||
Loading…
Reference in a new issue