Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit33fe736

Browse files
committed
Re-pgindent tsvector_op.c.
Messed up by recent commits --- this is annoying me while trying to fixsome bugs here.
1 parent5ebad9a commit33fe736

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

‎src/backend/utils/adt/tsvector_op.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,9 +1389,9 @@ TS_phrase_execute(QueryItem *curitem,
13891389
return false;
13901390

13911391
/*
1392-
* if at least one of the operands has no position information,
1393-
*thenreturn false. But if TS_EXEC_PHRASE_AS_AND flag is set then
1394-
*wereturn true as it is a AND operation
1392+
* if at least one of the operands has no position information, then
1393+
* return false. But if TS_EXEC_PHRASE_AS_AND flag is set then we
1394+
* return true as it is a AND operation
13951395
*/
13961396
if (Ldata.npos==0||Rdata.npos==0)
13971397
return (flags&TS_EXEC_PHRASE_AS_AND) ? true : false;
@@ -1428,8 +1428,8 @@ TS_phrase_execute(QueryItem *curitem,
14281428
while (Rpos<Rdata.pos+Rdata.npos)
14291429
{
14301430
/*
1431-
* We need to check all possible distances, so reset Lpos
1432-
*to guranteed not yet satisfied position.
1431+
* We need to check all possible distances, so reset Lpos to
1432+
*guaranteed not yet satisfied position.
14331433
*/
14341434
Lpos=LposStart;
14351435
while (Lpos<Ldata.pos+Ldata.npos)
@@ -1445,8 +1445,8 @@ TS_phrase_execute(QueryItem *curitem,
14451445
pos_iter++;
14461446

14471447
/*
1448-
* Set left start position to next, because current one
1449-
* could not satisfy distance for any other right
1448+
* Set left start position to next, because current
1449+
*onecould not satisfy distance for any other right
14501450
* position
14511451
*/
14521452
LposStart=Lpos+1;
@@ -1455,16 +1455,16 @@ TS_phrase_execute(QueryItem *curitem,
14551455
else
14561456
{
14571457
/*
1458-
* We are in the root of the phrase tree and hence
1459-
*wedon't have to store the resulting positions
1458+
* We are in the root of the phrase tree and hence we
1459+
* don't have to store the resulting positions
14601460
*/
14611461
return true;
14621462
}
14631463

14641464
}
14651465
elseif (WEP_GETPOS(*Rpos) <=WEP_GETPOS(*Lpos)||
14661466
WEP_GETPOS(*Rpos)-WEP_GETPOS(*Lpos)<
1467-
curitem->qoperator.distance)
1467+
curitem->qoperator.distance)
14681468
{
14691469
/*
14701470
* Go to the next Rpos, because Lpos is ahead or on less
@@ -1534,9 +1534,10 @@ TS_execute(QueryItem *curitem, void *checkval, uint32 flags,
15341534
returnTS_execute(curitem+1,checkval,flags,chkcond);
15351535

15361536
caseOP_PHRASE:
1537+
15371538
/*
1538-
* do not check TS_EXEC_PHRASE_AS_AND here because chkcond()
1539-
*coulddo something more if it's called from TS_phrase_execute()
1539+
* do not check TS_EXEC_PHRASE_AS_AND here because chkcond() could
1540+
* do something more if it's called from TS_phrase_execute()
15401541
*/
15411542
returnTS_phrase_execute(curitem,checkval,flags,NULL,chkcond);
15421543

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp