summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/tsquery.c
diff options
context:
space:
mode:
authorÁlvaro Herrera <alvherre@kurilemu.de>2025-05-11 09:47:10 -0400
committerÁlvaro Herrera <alvherre@kurilemu.de>2025-05-11 09:47:10 -0400
commitd2d3cd056dc451f8a7dcd343c9e44a901d177a25 (patch)
tree9afc9639f4008acfeea1e46837e20de29ddafa1f /src/backend/utils/adt/tsquery.c
parent793aa989f8e411ff91ba501fbc2030062f252d01 (diff)
Fix comment of tsquerysend()
The comment describes the order in which fields are sent, and it had one of the fields in the wrong place. This has been wrong since e6dbcb72fafa (2008), so backpatch all the way back. Author: Emre Hasegeli <emre@hasegeli.com> Discussion: https://postgr.es/m/CAE2gYzzf38bR_R=izhpMxAmqHXKeM5ajkmukh4mNs_oXfxcMCA@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/tsquery.c')
-rw-r--r--src/backend/utils/adt/tsquery.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backend/utils/adt/tsquery.c b/src/backend/utils/adt/tsquery.c
index 2bb3d0fc3f3..1458b12f316 100644
--- a/src/backend/utils/adt/tsquery.c
+++ b/src/backend/utils/adt/tsquery.c
@@ -1123,10 +1123,11 @@ tsqueryout(PG_FUNCTION_ARGS)
*
* uint8 type, QI_VAL
* uint8 weight
- * operand text in client encoding, null-terminated
* uint8 prefix
+ * operand text in client encoding, null-terminated
*
* For each operator:
+ *
* uint8 type, QI_OPR
* uint8 operator, one of OP_AND, OP_PHRASE OP_OR, OP_NOT.
* uint16 distance (only for OP_PHRASE)