Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d6d6020

Browse files
committed
More psprintf goodness
1 parent ac41769 commit d6d6020

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/backend/parser/gram.y

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4610,9 +4610,7 @@ TriggerFuncArgs:
46104610
TriggerFuncArg:
46114611
Iconst
46124612
{
4613-
char buf[64];
4614-
snprintf(buf, sizeof(buf), "%d", $1);
4615-
$$ = makeString(pstrdup(buf));
4613+
$$ = makeString(psprintf("%d", $1));
46164614
}
46174615
| FCONST { $$ = makeString($1); }
46184616
| Sconst { $$ = makeString($1); }

0 commit comments

Comments
 (0)