mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Add more use of psprintf()
This commit is contained in:
@ -56,12 +56,7 @@ defGetString(DefElem *def)
|
||||
switch (nodeTag(def->arg))
|
||||
{
|
||||
case T_Integer:
|
||||
{
|
||||
char *str = palloc(32);
|
||||
|
||||
snprintf(str, 32, "%ld", (long) intVal(def->arg));
|
||||
return str;
|
||||
}
|
||||
return psprintf("%ld", (long) intVal(def->arg));
|
||||
case T_Float:
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user