Skip to content

Commit 591cf62

Browse files
committed
tsquery: fix typo "rewrited" -> "rewritten"
Dagfinn Ilmari Mannsåker, reviewed by Shubham Khanna. Discussion: http://postgr.es/m/87le9fmi01.fsf@wibble.ilmari.org
1 parent 0d9937d commit 591cf62

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/backend/utils/adt/tsquery_rewrite.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ tsquery_rewrite_query(PG_FUNCTION_ARGS)
281281
{
282282
TSQuery query = PG_GETARG_TSQUERY_COPY(0);
283283
text *in = PG_GETARG_TEXT_PP(1);
284-
TSQuery rewrited = query;
284+
TSQuery rewritten = query;
285285
MemoryContext outercontext = CurrentMemoryContext;
286286
MemoryContext oldcontext;
287287
QTNode *tree;
@@ -293,7 +293,7 @@ tsquery_rewrite_query(PG_FUNCTION_ARGS)
293293
if (query->size == 0)
294294
{
295295
PG_FREE_IF_COPY(in, 1);
296-
PG_RETURN_POINTER(rewrited);
296+
PG_RETURN_POINTER(rewritten);
297297
}
298298

299299
tree = QT2QTN(GETQUERY(query), GETOPERAND(query));
@@ -391,19 +391,19 @@ tsquery_rewrite_query(PG_FUNCTION_ARGS)
391391
if (tree)
392392
{
393393
QTNBinary(tree);
394-
rewrited = QTN2QT(tree);
394+
rewritten = QTN2QT(tree);
395395
QTNFree(tree);
396396
PG_FREE_IF_COPY(query, 0);
397397
}
398398
else
399399
{
400-
SET_VARSIZE(rewrited, HDRSIZETQ);
401-
rewrited->size = 0;
400+
SET_VARSIZE(rewritten, HDRSIZETQ);
401+
rewritten->size = 0;
402402
}
403403

404404
pfree(buf);
405405
PG_FREE_IF_COPY(in, 1);
406-
PG_RETURN_POINTER(rewrited);
406+
PG_RETURN_POINTER(rewritten);
407407
}
408408

409409
Datum
@@ -412,7 +412,7 @@ tsquery_rewrite(PG_FUNCTION_ARGS)
412412
TSQuery query = PG_GETARG_TSQUERY_COPY(0);
413413
TSQuery ex = PG_GETARG_TSQUERY(1);
414414
TSQuery subst = PG_GETARG_TSQUERY(2);
415-
TSQuery rewrited = query;
415+
TSQuery rewritten = query;
416416
QTNode *tree,
417417
*qex,
418418
*subs = NULL;
@@ -421,7 +421,7 @@ tsquery_rewrite(PG_FUNCTION_ARGS)
421421
{
422422
PG_FREE_IF_COPY(ex, 1);
423423
PG_FREE_IF_COPY(subst, 2);
424-
PG_RETURN_POINTER(rewrited);
424+
PG_RETURN_POINTER(rewritten);
425425
}
426426

427427
tree = QT2QTN(GETQUERY(query), GETOPERAND(query));
@@ -442,21 +442,21 @@ tsquery_rewrite(PG_FUNCTION_ARGS)
442442

443443
if (!tree)
444444
{
445-
SET_VARSIZE(rewrited, HDRSIZETQ);
446-
rewrited->size = 0;
445+
SET_VARSIZE(rewritten, HDRSIZETQ);
446+
rewritten->size = 0;
447447
PG_FREE_IF_COPY(ex, 1);
448448
PG_FREE_IF_COPY(subst, 2);
449-
PG_RETURN_POINTER(rewrited);
449+
PG_RETURN_POINTER(rewritten);
450450
}
451451
else
452452
{
453453
QTNBinary(tree);
454-
rewrited = QTN2QT(tree);
454+
rewritten = QTN2QT(tree);
455455
QTNFree(tree);
456456
}
457457

458458
PG_FREE_IF_COPY(query, 0);
459459
PG_FREE_IF_COPY(ex, 1);
460460
PG_FREE_IF_COPY(subst, 2);
461-
PG_RETURN_POINTER(rewrited);
461+
PG_RETURN_POINTER(rewritten);
462462
}

0 commit comments

Comments
 (0)