|
7 | 7 | * |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.12 2008/03/05 15:50:37 momjian Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.13 2008/03/10 12:57:05 tgl Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -224,7 +224,8 @@ tsvectorin(PG_FUNCTION_ARGS) |
224 | 224 | if (cur-tmpbuf>MAXSTRPOS) |
225 | 225 | ereport(ERROR, |
226 | 226 | (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), |
227 | | -errmsg("string is too long for tsvector (%d bytes, max %d bytes)",cur-tmpbuf,MAXSTRPOS))); |
| 227 | +errmsg("string is too long for tsvector (%ld bytes, max %ld bytes)", |
| 228 | +(long) (cur-tmpbuf), (long)MAXSTRPOS))); |
228 | 229 |
|
229 | 230 | /* |
230 | 231 | * Enlarge buffers if needed |
|