8000 More psprintf goodness · postgrespro/postgres_cluster@d6d6020 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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)
0