summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2012-05-01 09:08:56 +0200
committerAndreas Baumann <abaumann@yahoo.com>2012-05-01 09:08:56 +0200
commitaaae85124b001380934824eba597d1db55ec75d8 (patch)
treeecc502ac69df3aa381eab1a42cd78f3ac73f0099
parent769032ebbbc2bf8f72dbfce13b39cf0e450f17c7 (diff)
downloadpgfuse-aaae85124b001380934824eba597d1db55ec75d8.tar.gz
pgfuse-aaae85124b001380934824eba597d1db55ec75d8.tar.bz2
-
-rw-r--r--pgsql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pgsql.c b/pgsql.c
index 5a8b16b..376fad1 100644
--- a/pgsql.c
+++ b/pgsql.c
@@ -591,7 +591,7 @@ update_again:
/* small in the middle write, keep data on both sides */
} else if( offset > 0 && offset + len < STANDARD_BLOCK_SIZE ) {
- sprintf( sql, "UPDATE data set data = substring( data from %d for %d ) || $3::bytea || substring( data from %u for %u ) WHERE dir_id=$1::integer AND block_no=$2::integer",
+ sprintf( sql, "UPDATE data set data = substring( data from %d for %d ) || $3::bytea || substring( data from %u for %u ) WHERE dir_id=$1::bigint AND block_no=$2::bigint",
1, (unsigned int)offset,
(unsigned int)offset + (unsigned int)len + 1, STANDARD_BLOCK_SIZE - ( (unsigned int)offset + (unsigned int)len ) );