projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb1ca4d
)
Fix minor copy & pasto in the int128 accumulator patch.
author
Andres Freund
<andres@anarazel.de>
Sun, 22 Mar 2015 18:51:12 +0000
(19:51 +0100)
committer
Andres Freund
<andres@anarazel.de>
Sun, 22 Mar 2015 18:53:38 +0000
(19:53 +0100)
It's unlikely that using PG_GETARG_INT16 instead of PG_GETARG_INT32 in
this pace can cause actual problems, but this still should be fixed.
src/backend/utils/adt/numeric.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/utils/adt/numeric.c
b/src/backend/utils/adt/numeric.c
index ff9bfcc455cf57dcf7bb9232251f39acad701969..0c4fcbe0d340083f802995da0c0238f61c937fd3 100644
(file)
--- a/
src/backend/utils/adt/numeric.c
+++ b/
src/backend/utils/adt/numeric.c
@@
-3019,7
+3019,7
@@
int2_accum(PG_FUNCTION_ARGS)
if (!PG_ARGISNULL(1))
{
#ifdef HAVE_INT128
- do_int128_accum(state, (int128) PG_GETARG_INT
32
(1));
+ do_int128_accum(state, (int128) PG_GETARG_INT
16
(1));
#else
Numeric newval;