mirror of
https://github.com/postgres/postgres.git
synced 2025-07-11 10:01:57 +03:00
Add const to values and nulls arguments
This excludes any changes that would change the external AM APIs. Reviewed-by: Aleksander Alekseev <aleksander@timescale.com> Discussion: https://www.postgresql.org/message-id/flat/14c31f4a-0347-0805-dce8-93a9072c05a5%40eisentraut.org
This commit is contained in:
@ -573,7 +573,7 @@ gistdentryinit(GISTSTATE *giststate, int nkey, GISTENTRY *e,
|
||||
|
||||
IndexTuple
|
||||
gistFormTuple(GISTSTATE *giststate, Relation r,
|
||||
Datum *attdata, bool *isnull, bool isleaf)
|
||||
const Datum *attdata, const bool *isnull, bool isleaf)
|
||||
{
|
||||
Datum compatt[INDEX_MAX_KEYS];
|
||||
IndexTuple res;
|
||||
@ -594,7 +594,7 @@ gistFormTuple(GISTSTATE *giststate, Relation r,
|
||||
|
||||
void
|
||||
gistCompressValues(GISTSTATE *giststate, Relation r,
|
||||
Datum *attdata, bool *isnull, bool isleaf, Datum *compatt)
|
||||
const Datum *attdata, const bool *isnull, bool isleaf, Datum *compatt)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
Reference in New Issue
Block a user