summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÁlvaro Herrera2025-05-11 13:47:10 +0000
committerÁlvaro Herrera2025-05-11 13:47:10 +0000
commit0588656366687887d06b0b1f79c9adc142ea1595 (patch)
tree4f2eecfaa7147e862023159bca58a99e89702ac3
parentdc9a2d54fd2571c21c074103cc8ddd93e840b985 (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 <[email protected]> Discussion: https://postgr.es/m/CAE2gYzzf38bR_R=izhpMxAmqHXKeM5ajkmukh4mNs_oXfxcMCA@mail.gmail.com
-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 b1bad7bd60c..717de8073d5 100644
--- a/src/backend/utils/adt/tsquery.c
+++ b/src/backend/utils/adt/tsquery.c
@@ -1176,10 +1176,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)