Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
1783e5db
Commit
1783e5db
authored
Aug 21, 2007
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix money type's send/receive functions to conform to recent widening
of the datatype to int64. Per Andrew Chernow.
parent
1cee06ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/backend/utils/adt/cash.c
src/backend/utils/adt/cash.c
+3
-3
No files found.
src/backend/utils/adt/cash.c
View file @
1783e5db
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
* this version handles 64 bit numbers and so can hold values up to
* this version handles 64 bit numbers and so can hold values up to
* $92,233,720,368,547,758.07.
* $92,233,720,368,547,758.07.
*
*
* $PostgreSQL: pgsql/src/backend/utils/adt/cash.c,v 1.7
1 2007/07/12 23:51:10
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/cash.c,v 1.7
2 2007/08/21 03:14:36
tgl Exp $
*/
*/
#include "postgres.h"
#include "postgres.h"
...
@@ -372,7 +372,7 @@ cash_recv(PG_FUNCTION_ARGS)
...
@@ -372,7 +372,7 @@ cash_recv(PG_FUNCTION_ARGS)
{
{
StringInfo
buf
=
(
StringInfo
)
PG_GETARG_POINTER
(
0
);
StringInfo
buf
=
(
StringInfo
)
PG_GETARG_POINTER
(
0
);
PG_RETURN_CASH
((
Cash
)
pq_getmsgint
(
buf
,
sizeof
(
Cash
)
));
PG_RETURN_CASH
((
Cash
)
pq_getmsgint
64
(
buf
));
}
}
/*
/*
...
@@ -385,7 +385,7 @@ cash_send(PG_FUNCTION_ARGS)
...
@@ -385,7 +385,7 @@ cash_send(PG_FUNCTION_ARGS)
StringInfoData
buf
;
StringInfoData
buf
;
pq_begintypsend
(
&
buf
);
pq_begintypsend
(
&
buf
);
pq_sendint
(
&
buf
,
arg1
,
sizeof
(
Cash
)
);
pq_sendint
64
(
&
buf
,
arg1
);
PG_RETURN_BYTEA_P
(
pq_endtypsend
(
&
buf
));
PG_RETURN_BYTEA_P
(
pq_endtypsend
(
&
buf
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment