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

Commitb562639

Browse files
committed
Fix bogus error test in get_ti_Oid().
1 parent0631059 commitb562639

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎contrib/tsearch2/ts_stat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ ts_accum_finish(PG_FUNCTION_ARGS)
412412
}
413413

414414
staticOidtiOid=InvalidOid;
415+
415416
staticvoid
416417
get_ti_Oid(void)
417418
{
@@ -422,7 +423,7 @@ get_ti_Oid(void)
422423
/* internal error */
423424
elog(ERROR,"SPI_exec to get tsvector oid returns %d",ret);
424425

425-
if (SPI_processed<0)
426+
if (SPI_processed<1)
426427
/* internal error */
427428
elog(ERROR,"There is no tsvector type");
428429
tiOid=DatumGetObjectId(SPI_getbinval(SPI_tuptable->vals[0],SPI_tuptable->tupdesc,1,&isnull));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp