Skip to content

Commit 5a1e0ac

Browse files
alvherrehopebo
authored andcommitted
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 e6dbcb7 (2008), so backpatch all the way back. Author: Emre Hasegeli <[email protected]> Discussion: https://postgr.es/m/CAE2gYzzf38bR_R=izhpMxAmqHXKeM5ajkmukh4mNs_oXfxcMCA@mail.gmail.com (cherry picked from commit e65d8be042f743a7a839ec8df5c9005b8811d06f)
1 parent 7ccfbd1 commit 5a1e0ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/utils/adt/tsquery.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,10 +1176,11 @@ tsqueryout(PG_FUNCTION_ARGS)
11761176
*
11771177
* uint8 type, QI_VAL
11781178
* uint8 weight
1179-
* operand text in client encoding, null-terminated
11801179
* uint8 prefix
1180+
* operand text in client encoding, null-terminated
11811181
*
11821182
* For each operator:
1183+
*
11831184
* uint8 type, QI_OPR
11841185
* uint8 operator, one of OP_AND, OP_PHRASE OP_OR, OP_NOT.
11851186
* uint16 distance (only for OP_PHRASE)

0 commit comments

Comments
 (0)