mirror of https://github.com/citusdata/citus.git
Removes some comments with printf %.*s format from ruleutils_14.c
Relevant PG commit: c410af098c46949e36607eb13689e697fa2def97pull/5209/head
parent
e38b75799d
commit
a710b3b949
|
@ -630,11 +630,6 @@ set_rtable_names(deparse_namespace *dpns, List *parent_namespaces,
|
||||||
hentry->counter++;
|
hentry->counter++;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* We avoid using %.*s here because it can misbehave
|
|
||||||
* if the data is not valid in what libc thinks is the
|
|
||||||
* prevailing encoding.
|
|
||||||
*/
|
|
||||||
memcpy(modname, refname, refnamelen);
|
memcpy(modname, refname, refnamelen);
|
||||||
sprintf(modname + refnamelen, "_%d", hentry->counter);
|
sprintf(modname + refnamelen, "_%d", hentry->counter);
|
||||||
if (strlen(modname) < NAMEDATALEN)
|
if (strlen(modname) < NAMEDATALEN)
|
||||||
|
@ -1492,11 +1487,6 @@ make_colname_unique(char *colname, deparse_namespace *dpns,
|
||||||
i++;
|
i++;
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* We avoid using %.*s here because it can misbehave if the
|
|
||||||
* data is not valid in what libc thinks is the prevailing
|
|
||||||
* encoding.
|
|
||||||
*/
|
|
||||||
memcpy(modname, colname, colnamelen);
|
memcpy(modname, colname, colnamelen);
|
||||||
sprintf(modname + colnamelen, "_%d", i);
|
sprintf(modname + colnamelen, "_%d", i);
|
||||||
if (strlen(modname) < NAMEDATALEN)
|
if (strlen(modname) < NAMEDATALEN)
|
||||||
|
|
Loading…
Reference in New Issue