mirror of
https://github.com/postgres/postgres.git
synced 2025-11-19 13:42:17 +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:
@@ -683,8 +683,8 @@ tuplesort_putheaptuple(Tuplesortstate *state, HeapTuple tup)
|
||||
*/
|
||||
void
|
||||
tuplesort_putindextuplevalues(Tuplesortstate *state, Relation rel,
|
||||
ItemPointer self, Datum *values,
|
||||
bool *isnull)
|
||||
ItemPointer self, const Datum *values,
|
||||
const bool *isnull)
|
||||
{
|
||||
SortTuple stup;
|
||||
IndexTuple tuple;
|
||||
|
||||
@@ -748,7 +748,7 @@ tuplestore_puttuple(Tuplestorestate *state, HeapTuple tuple)
|
||||
*/
|
||||
void
|
||||
tuplestore_putvalues(Tuplestorestate *state, TupleDesc tdesc,
|
||||
Datum *values, bool *isnull)
|
||||
const Datum *values, const bool *isnull)
|
||||
{
|
||||
MinimalTuple tuple;
|
||||
MemoryContext oldcxt = MemoryContextSwitchTo(state->context);
|
||||
|
||||
Reference in New Issue
Block a user