agora inbox for [email protected]
help / color / mirror / Atom feedFrom: Dagfinn Ilmari Mannsåker <[email protected]>
Subject: [PATCH 02/13] tsquery: fix typo "rewrited" -> "rewritten"
Date: Fri, 22 Dec 2023 00:42:57 +0000
---
src/backend/utils/adt/tsquery_rewrite.c | 26 ++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/backend/utils/adt/tsquery_rewrite.c b/src/backend/utils/adt/tsquery_rewrite.c
index 7e73635162..9d7a79cc71 100644
--- a/src/backend/utils/adt/tsquery_rewrite.c
+++ b/src/backend/utils/adt/tsquery_rewrite.c
@@ -281,7 +281,7 @@ tsquery_rewrite_query(PG_FUNCTION_ARGS)
{
TSQuery query = PG_GETARG_TSQUERY_COPY(0);
text *in = PG_GETARG_TEXT_PP(1);
- TSQuery rewrited = query;
+ TSQuery rewritten = query;
MemoryContext outercontext = CurrentMemoryContext;
MemoryContext oldcontext;
QTNode *tree;
@@ -293,7 +293,7 @@ tsquery_rewrite_query(PG_FUNCTION_ARGS)
if (query->size == 0)
{
PG_FREE_IF_COPY(in, 1);
- PG_RETURN_POINTER(rewrited);
+ PG_RETURN_POINTER(rewritten);
}
tree = QT2QTN(GETQUERY(query), GETOPERAND(query));
@@ -391,19 +391,19 @@ tsquery_rewrite_query(PG_FUNCTION_ARGS)
if (tree)
{
QTNBinary(tree);
- rewrited = QTN2QT(tree);
+ rewritten = QTN2QT(tree);
QTNFree(tree);
PG_FREE_IF_COPY(query, 0);
}
else
{
- SET_VARSIZE(rewrited, HDRSIZETQ);
- rewrited->size = 0;
+ SET_VARSIZE(rewritten, HDRSIZETQ);
+ rewritten->size = 0;
}
pfree(buf);
PG_FREE_IF_COPY(in, 1);
- PG_RETURN_POINTER(rewrited);
+ PG_RETURN_POINTER(rewritten);
}
Datum
@@ -412,7 +412,7 @@ tsquery_rewrite(PG_FUNCTION_ARGS)
TSQuery query = PG_GETARG_TSQUERY_COPY(0);
TSQuery ex = PG_GETARG_TSQUERY(1);
TSQuery subst = PG_GETARG_TSQUERY(2);
- TSQuery rewrited = query;
+ TSQuery rewritten = query;
QTNode *tree,
*qex,
*subs = NULL;
@@ -421,7 +421,7 @@ tsquery_rewrite(PG_FUNCTION_ARGS)
{
PG_FREE_IF_COPY(ex, 1);
PG_FREE_IF_COPY(subst, 2);
- PG_RETURN_POINTER(rewrited);
+ PG_RETURN_POINTER(rewritten);
}
tree = QT2QTN(GETQUERY(query), GETOPERAND(query));
@@ -442,21 +442,21 @@ tsquery_rewrite(PG_FUNCTION_ARGS)
if (!tree)
{
- SET_VARSIZE(rewrited, HDRSIZETQ);
- rewrited->size = 0;
+ SET_VARSIZE(rewritten, HDRSIZETQ);
+ rewritten->size = 0;
PG_FREE_IF_COPY(ex, 1);
PG_FREE_IF_COPY(subst, 2);
- PG_RETURN_POINTER(rewrited);
+ PG_RETURN_POINTER(rewritten);
}
else
{
QTNBinary(tree);
- rewrited = QTN2QT(tree);
+ rewritten = QTN2QT(tree);
QTNFree(tree);
}
PG_FREE_IF_COPY(query, 0);
PG_FREE_IF_COPY(ex, 1);
PG_FREE_IF_COPY(subst, 2);
- PG_RETURN_POINTER(rewrited);
+ PG_RETURN_POINTER(rewritten);
}
--
2.39.2
--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
filename=0003-gist-fix-typo-split-t-ed-split.patch
view thread (3+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PATCH 02/13] tsquery: fix typo "rewrited" -> "rewritten"
In-Reply-To: <no-message-id-88517@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox