mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +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:
@@ -788,7 +788,7 @@ memcpyInnerDatum(void *target, SpGistTypeDesc *att, Datum datum)
|
||||
*/
|
||||
Size
|
||||
SpGistGetLeafTupleSize(TupleDesc tupleDescriptor,
|
||||
Datum *datums, bool *isnulls)
|
||||
const Datum *datums, const bool *isnulls)
|
||||
{
|
||||
Size size;
|
||||
Size data_size;
|
||||
@@ -841,7 +841,7 @@ SpGistGetLeafTupleSize(TupleDesc tupleDescriptor,
|
||||
*/
|
||||
SpGistLeafTuple
|
||||
spgFormLeafTuple(SpGistState *state, ItemPointer heapPtr,
|
||||
Datum *datums, bool *isnulls)
|
||||
const Datum *datums, const bool *isnulls)
|
||||
{
|
||||
SpGistLeafTuple tup;
|
||||
TupleDesc tupleDescriptor = state->leafTupDesc;
|
||||
|
Reference in New Issue
Block a user