Skip to content

Commit 0588656

Browse files
author
Álvaro Herrera
committed
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 <emre@hasegeli.com> Discussion: https://postgr.es/m/CAE2gYzzf38bR_R=izhpMxAmqHXKeM5ajkmukh4mNs_oXfxcMCA@mail.gmail.com
1 parent dc9a2d5 commit 0588656

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)