From: Peter Geoghegan Date: Thu, 13 Mar 2014 07:21:27 +0000 (-0700) Subject: Consistent variable naming X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=12be4266c847e930758105ed70a7d1263ab1640d;p=users%2Fandresfreund%2Fpostgres.git Consistent variable naming --- diff --git a/src/backend/utils/adt/jsonb_op.c b/src/backend/utils/adt/jsonb_op.c index d271e1787a..623a344d4c 100644 --- a/src/backend/utils/adt/jsonb_op.c +++ b/src/backend/utils/adt/jsonb_op.c @@ -73,7 +73,7 @@ jsonb_exists_any(PG_FUNCTION_ARGS) Datum jsonb_exists_all(PG_FUNCTION_ARGS) { - Jsonb *js = PG_GETARG_JSONB(0); + Jsonb *jb = PG_GETARG_JSONB(0); ArrayType *keys = PG_GETARG_ARRAYTYPE_P(1); JsonbValue *v = arrayToJsonbSortedArray(keys); uint32 *plowbound = NULL; @@ -83,7 +83,7 @@ jsonb_exists_all(PG_FUNCTION_ARGS) if (v == NULL || v->array.nElems == 0) PG_RETURN_BOOL(true); - if (JB_ROOT_IS_OBJECT(js)) + if (JB_ROOT_IS_OBJECT(jb)) plowbound = &lowbound; /* @@ -94,7 +94,7 @@ jsonb_exists_all(PG_FUNCTION_ARGS) */ for (i = 0; i < v->array.nElems; i++) { - if (findJsonbValueFromSuperHeader(VARDATA(js), + if (findJsonbValueFromSuperHeader(VARDATA(jb), JB_FLAG_OBJECT | JB_FLAG_ARRAY, plowbound, v->array.elems + i) == NULL)