From 9d966c2e3249e68ef89506b373dfe6d645bd45ae Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 10 Mar 2008 12:57:05 +0000 Subject: [PATCH] Fix unportable coding of new error message, per Kris Jurka. --- src/backend/utils/adt/tsvector.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/utils/adt/tsvector.c b/src/backend/utils/adt/tsvector.c index bef297a0a5..18342800cc 100644 --- a/src/backend/utils/adt/tsvector.c +++ b/src/backend/utils/adt/tsvector.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.12 2008/03/05 15:50:37 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.13 2008/03/10 12:57:05 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -224,7 +224,8 @@ tsvectorin(PG_FUNCTION_ARGS) if (cur - tmpbuf > MAXSTRPOS) ereport(ERROR, (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), - errmsg("string is too long for tsvector (%d bytes, max %d bytes)", cur - tmpbuf, MAXSTRPOS))); + errmsg("string is too long for tsvector (%ld bytes, max %ld bytes)", + (long) (cur - tmpbuf), (long) MAXSTRPOS))); /* * Enlarge buffers if needed -- 2.40.0