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

Commit440a330

Browse files
committed
Fix a small 64-bit problem in tsearch patch.
1 parent46dedde commit440a330

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.1 2007/08/21 01:11:19 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.2 2007/08/21 01:45:33 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -434,8 +434,9 @@ tsvectorin(PG_FUNCTION_ARGS)
434434
if (state.curpos-state.word >=MAXSTRLEN)
435435
ereport(ERROR,
436436
(errcode(ERRCODE_SYNTAX_ERROR),
437-
errmsg("word is too long (%d bytes, max %d bytes)",
438-
state.curpos-state.word,MAXSTRLEN)));
437+
errmsg("word is too long (%ld bytes, max %ld bytes)",
438+
(long) (state.curpos-state.word),
439+
(long)MAXSTRLEN)));
439440

440441
arr[len].entry.len=state.curpos-state.word;
441442
if (cur-tmpbuf>MAXSTRPOS)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp