git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 46dedde)
Fix a small 64-bit problem in tsearch patch.
2007年8月21日 01:45:33 +0000 (01:45 +0000)
2007年8月21日 01:45:33 +0000 (01:45 +0000)

diff --git a/src/backend/utils/adt/tsvector.c b/src/backend/utils/adt/tsvector.c
index 04b6345e1622854c6272c33af64e0ea7b61729d4..8ab024650f72a6887bbe4a17453b4decd9115a16 100644 (file)
--- 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.1 2007年08月21日 01:11:19 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/tsvector.c,v 1.2 2007年08月21日 01:45:33 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -434,8 +434,9 @@ tsvectorin(PG_FUNCTION_ARGS)
if (state.curpos - state.word >= MAXSTRLEN)
ereport(ERROR,
(errcode(ERRCODE_SYNTAX_ERROR),
- errmsg("word is too long (%d bytes, max %d bytes)",
- state.curpos - state.word, MAXSTRLEN)));
+ errmsg("word is too long (%ld bytes, max %ld bytes)",
+ (long) (state.curpos - state.word),
+ (long) MAXSTRLEN)));
arr[len].entry.len = state.curpos - state.word;
if (cur - tmpbuf > MAXSTRPOS)
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /