]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix comment of tsquerysend()
authorÁlvaro Herrera <alvherre@kurilemu.de>
Sun, 11 May 2025 13:47:10 +0000 (09:47 -0400)
committerÁlvaro Herrera <alvherre@kurilemu.de>
Sun, 11 May 2025 13:47:10 +0000 (09:47 -0400)
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

src/backend/utils/adt/tsquery.c

index 2bb3d0fc3f399118af8a0626e23a58a237847cce..1458b12f316107db58001c4d9f971ff13eefdd29 100644 (file)
@@ -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)