|
7 | 7 | *
|
8 | 8 | *
|
9 | 9 | * 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 $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
@@ -434,8 +434,9 @@ tsvectorin(PG_FUNCTION_ARGS)
|
434 | 434 | if (state.curpos-state.word >=MAXSTRLEN)
|
435 | 435 | ereport(ERROR,
|
436 | 436 | (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))); |
439 | 440 |
|
440 | 441 | arr[len].entry.len=state.curpos-state.word;
|
441 | 442 | if (cur-tmpbuf>MAXSTRPOS)
|
|