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

Appearance settings

Commit 440a330

Browse filesBrowse files
committed
Fix a small 64-bit problem in tsearch patch.
1 parent 46dedde commit 440a330
Copy full SHA for 440a330

File tree

Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/backend/utils/adt/tsvector.c
+4-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.