aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-03-04 09:45:01 +0100
committerPeter Eisentraut <peter@eisentraut.org>2025-03-04 09:45:01 +0100
commit3abbd8dbeb8f0e4764ad6edb1ab3a71d4c3023f0 (patch)
tree4230a2f359266174d9b73472f027d5221defe80b /src
parentf011acdd61fc296ec8822ca4edc18e32b6bd2b56 (diff)
downloadpostgresql-3abbd8dbeb8f0e4764ad6edb1ab3a71d4c3023f0.tar.gz
postgresql-3abbd8dbeb8f0e4764ad6edb1ab3a71d4c3023f0.zip
Fix accidental use of = instead of ==
Fix for commit 630f9a43cec. It used = instead of ==. The result would be an incorrect error message. Author: Jacob Brazeal <jacob.brazeal@gmail.com> Reviewed-by: Michael Paquier <michael@paquier.xyz> Discussion: https://www.postgresql.org/message-id/flat/CA%2BCOZaC-JMbhQ4O0Q8V1Bxa0R%2BNex_RN9D6UyuLPiEx_CK4Heg%40mail.gmail.com
Diffstat (limited to 'src')
-rw-r--r--src/backend/commands/indexcmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c
index c92f5620ec1..32ff3ca9a28 100644
--- a/src/backend/commands/indexcmds.c
+++ b/src/backend/commands/indexcmds.c
@@ -2472,7 +2472,7 @@ GetOperatorFromCompareType(Oid opclass, Oid rhstype, CompareType cmptype,
if (*strat == InvalidStrategy)
ereport(ERROR,
errcode(ERRCODE_UNDEFINED_OBJECT),
- cmptype = COMPARE_EQ ? errmsg("could not identify an equality operator for type %s", format_type_be(opcintype)) :
+ cmptype == COMPARE_EQ ? errmsg("could not identify an equality operator for type %s", format_type_be(opcintype)) :
cmptype == COMPARE_OVERLAP ? errmsg("could not identify an overlaps operator for type %s", format_type_be(opcintype)) :
cmptype == COMPARE_CONTAINED_BY ? errmsg("could not identify a contained-by operator for type %s", format_type_be(opcintype)) : 0,
errdetail("Could not translate compare type %d for operator family \"%s\", input type %s, access method \"%s\".",