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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy