We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1cee06a commit1783e5dCopy full SHA for 1783e5d
src/backend/utils/adt/cash.c
@@ -13,7 +13,7 @@
13
* this version handles 64 bit numbers and so can hold values up to
14
* $92,233,720,368,547,758.07.
15
*
16
- * $PostgreSQL: pgsql/src/backend/utils/adt/cash.c,v 1.71 2007/07/12 23:51:10 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/cash.c,v 1.72 2007/08/21 03:14:36 tgl Exp $
17
*/
18
19
#include"postgres.h"
@@ -372,7 +372,7 @@ cash_recv(PG_FUNCTION_ARGS)
372
{
373
StringInfobuf= (StringInfo)PG_GETARG_POINTER(0);
374
375
-PG_RETURN_CASH((Cash)pq_getmsgint(buf,sizeof(Cash)));
+PG_RETURN_CASH((Cash)pq_getmsgint64(buf));
376
}
377
378
/*
@@ -385,7 +385,7 @@ cash_send(PG_FUNCTION_ARGS)
385
StringInfoDatabuf;
386
387
pq_begintypsend(&buf);
388
-pq_sendint(&buf,arg1,sizeof(Cash));
+pq_sendint64(&buf,arg1);
389
PG_RETURN_BYTEA_P(pq_endtypsend(&buf));
390
391