mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +03:00
Harmonize more parameter names in bulk.
Make sure that function declarations use names that exactly match the corresponding names from function definitions in optimizer, parser, utility, libpq, and "commands" code, as well as in remaining library code. Do the same for all code related to frontend programs (with the exception of pg_dump/pg_dumpall related code). Like other recent commits that cleaned up function parameter names, this commit was written with help from clang-tidy. Later commits will handle ecpg and pg_dump/pg_dumpall. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
This commit is contained in:
@@ -188,12 +188,12 @@ JsonbContainerTypeName(JsonbContainer *jbc)
|
||||
* Get the type name of a jsonb value.
|
||||
*/
|
||||
const char *
|
||||
JsonbTypeName(JsonbValue *jbv)
|
||||
JsonbTypeName(JsonbValue *val)
|
||||
{
|
||||
switch (jbv->type)
|
||||
switch (val->type)
|
||||
{
|
||||
case jbvBinary:
|
||||
return JsonbContainerTypeName(jbv->val.binary.data);
|
||||
return JsonbContainerTypeName(val->val.binary.data);
|
||||
case jbvObject:
|
||||
return "object";
|
||||
case jbvArray:
|
||||
@@ -207,7 +207,7 @@ JsonbTypeName(JsonbValue *jbv)
|
||||
case jbvNull:
|
||||
return "null";
|
||||
case jbvDatetime:
|
||||
switch (jbv->val.datetime.typid)
|
||||
switch (val->val.datetime.typid)
|
||||
{
|
||||
case DATEOID:
|
||||
return "date";
|
||||
@@ -221,11 +221,11 @@ JsonbTypeName(JsonbValue *jbv)
|
||||
return "timestamp with time zone";
|
||||
default:
|
||||
elog(ERROR, "unrecognized jsonb value datetime type: %d",
|
||||
jbv->val.datetime.typid);
|
||||
val->val.datetime.typid);
|
||||
}
|
||||
return "unknown";
|
||||
default:
|
||||
elog(ERROR, "unrecognized jsonb value type: %d", jbv->type);
|
||||
elog(ERROR, "unrecognized jsonb value type: %d", val->type);
|
||||
return "unknown";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user