mirror of
https://github.com/postgres/postgres.git
synced 2025-11-24 00:23:06 +03:00
Initial pgindent run for v12.
This is still using the 2.0 version of pg_bsd_indent. I thought it would be good to commit this separately, so as to document the differences between 2.0 and 2.1 behavior. Discussion: https://postgr.es/m/16296.1558103386@sss.pgh.pa.us
This commit is contained in:
@@ -561,7 +561,7 @@ char *
|
||||
pg_any_to_server(const char *s, int len, int encoding)
|
||||
{
|
||||
if (len <= 0)
|
||||
return unconstify(char *, s); /* empty string is always valid */
|
||||
return unconstify(char *, s); /* empty string is always valid */
|
||||
|
||||
if (encoding == DatabaseEncoding->encoding ||
|
||||
encoding == PG_SQL_ASCII)
|
||||
@@ -634,11 +634,11 @@ char *
|
||||
pg_server_to_any(const char *s, int len, int encoding)
|
||||
{
|
||||
if (len <= 0)
|
||||
return unconstify(char *, s); /* empty string is always valid */
|
||||
return unconstify(char *, s); /* empty string is always valid */
|
||||
|
||||
if (encoding == DatabaseEncoding->encoding ||
|
||||
encoding == PG_SQL_ASCII)
|
||||
return unconstify(char *, s); /* assume data is valid */
|
||||
return unconstify(char *, s); /* assume data is valid */
|
||||
|
||||
if (DatabaseEncoding->encoding == PG_SQL_ASCII)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user