More psprintf goodness

This commit is contained in:
Alvaro Herrera 2014-08-25 15:32:15 -04:00
parent ac41769fd9
commit d6d6020f1c
1 changed files with 1 additions and 3 deletions

View File

@ -4610,9 +4610,7 @@ TriggerFuncArgs:
TriggerFuncArg:
Iconst
{
char buf[64];
snprintf(buf, sizeof(buf), "%d", $1);
$$ = makeString(pstrdup(buf));
$$ = makeString(psprintf("%d", $1));
}
| FCONST { $$ = makeString($1); }
| Sconst { $$ = makeString($1); }