Commit d6d6020f authored by Alvaro Herrera's avatar Alvaro Herrera

More psprintf goodness

parent ac41769f
......@@ -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); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment