Skip to content

Commit 86bc9c9

Browse files
author
Artur Zakirov
committed
Style fixes
1 parent 71c1d95 commit 86bc9c9

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

rum_ts_utils.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,19 +1319,19 @@ rum_tsvector_config(PG_FUNCTION_ARGS)
13191319
Datum
13201320
rum_ts_join_pos(PG_FUNCTION_ARGS)
13211321
{
1322-
Datum addInfo1 = PG_GETARG_DATUM(0);
1323-
Datum addInfo2 = PG_GETARG_DATUM(1);
1324-
char *in1 = VARDATA_ANY(addInfo1),
1325-
*in2 = VARDATA_ANY(addInfo2);
1326-
bytea *result;
1327-
int count1 = count_pos(in1, VARSIZE_ANY_EXHDR(addInfo1)),
1328-
count2 = count_pos(in2, VARSIZE_ANY_EXHDR(addInfo2)),
1329-
countRes = 0,
1330-
i1 = 0, i2 = 0, size;
1331-
uint16 pos1, pos2, *pos;
1332-
1333-
result = palloc(VARHDRSZ + sizeof(uint16) * (count1 + count2));
1334-
pos = palloc(sizeof(uint16) * (count1 + count2));
1322+
Datum addInfo1 = PG_GETARG_DATUM(0);
1323+
Datum addInfo2 = PG_GETARG_DATUM(1);
1324+
char *in1 = VARDATA_ANY(addInfo1),
1325+
*in2 = VARDATA_ANY(addInfo2);
1326+
bytea *result;
1327+
int count1 = count_pos(in1, VARSIZE_ANY_EXHDR(addInfo1)),
1328+
count2 = count_pos(in2, VARSIZE_ANY_EXHDR(addInfo2)),
1329+
countRes = 0,
1330+
i1 = 0, i2 = 0, size;
1331+
WordEntryPos pos1, pos2, *pos;
1332+
1333+
result = palloc(VARHDRSZ + sizeof(WordEntryPos) * (count1 + count2));
1334+
pos = palloc(sizeof(WordEntryPos) * (count1 + count2));
13351335

13361336
Assert(count1 > 0 && count2 > 0);
13371337

rumvalidate.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ rumvalidate(Oid opclassoid)
160160
opcintype, opcintype, INT2OID);
161161
break;
162162
case RUM_ADDINFO_JOIN:
163-
ok = true; /* XXX */
163+
ok = check_amproc_signature(procform->amproc, BYTEAOID, false,
164+
2, 2, opckeytype, opckeytype);
164165
break;
165166
default:
166167
ereport(INFO,

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy