mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Change internal integer representation of Value node
A Value node would store an integer as a long. This causes needless portability risks, as long can be of varying sizes. Change it to use int instead. All code using this was already careful to only store 32-bit values anyway. Reviewed-by: Michael Paquier <michael@paquier.xyz>
This commit is contained in:
@ -3235,7 +3235,7 @@ _outValue(StringInfo str, const Value *value)
|
||||
switch (value->type)
|
||||
{
|
||||
case T_Integer:
|
||||
appendStringInfo(str, "%ld", value->val.ival);
|
||||
appendStringInfo(str, "%d", value->val.ival);
|
||||
break;
|
||||
case T_Float:
|
||||
|
||||
|
Reference in New Issue
Block a user