@@ -127,15 +127,15 @@ typedef enum
127
127
static bool check_exclusion_or_unique_constraint (Relation heap , Relation index ,
128
128
IndexInfo * indexInfo ,
129
129
ItemPointer tupleid ,
130
- Datum * values , bool * isnull ,
130
+ const Datum * values , const bool * isnull ,
131
131
EState * estate , bool newIndex ,
132
132
CEOUC_WAIT_MODE waitMode ,
133
133
bool violationOK ,
134
134
ItemPointer conflictTid );
135
135
136
- static bool index_recheck_constraint (Relation index , Oid * constr_procs ,
137
- Datum * existing_values , bool * existing_isnull ,
138
- Datum * new_values );
136
+ static bool index_recheck_constraint (Relation index , const Oid * constr_procs ,
137
+ const Datum * existing_values , const bool * existing_isnull ,
138
+ const Datum * new_values );
139
139
static bool index_unchanged_by_update (ResultRelInfo * resultRelInfo ,
140
140
EState * estate , IndexInfo * indexInfo ,
141
141
Relation indexRelation );
@@ -684,7 +684,7 @@ static bool
684
684
check_exclusion_or_unique_constraint (Relation heap , Relation index ,
685
685
IndexInfo * indexInfo ,
686
686
ItemPointer tupleid ,
687
- Datum * values , bool * isnull ,
687
+ const Datum * values , const bool * isnull ,
688
688
EState * estate , bool newIndex ,
689
689
CEOUC_WAIT_MODE waitMode ,
690
690
bool violationOK ,
910
910
check_exclusion_constraint (Relation heap , Relation index ,
911
911
IndexInfo * indexInfo ,
912
912
ItemPointer tupleid ,
913
- Datum * values , bool * isnull ,
913
+ const Datum * values , const bool * isnull ,
914
914
EState * estate , bool newIndex )
915
915
{
916
916
(void ) check_exclusion_or_unique_constraint (heap , index , indexInfo , tupleid ,
@@ -924,9 +924,9 @@ check_exclusion_constraint(Relation heap, Relation index,
924
924
* exclusion condition against the new_values. Returns true if conflict.
925
925
*/
926
926
static bool
927
- index_recheck_constraint (Relation index , Oid * constr_procs ,
928
- Datum * existing_values , bool * existing_isnull ,
929
- Datum * new_values )
927
+ index_recheck_constraint (Relation index , const Oid * constr_procs ,
928
+ const Datum * existing_values , const bool * existing_isnull ,
929
+ const Datum * new_values )
930
930
{
931
931
int indnkeyatts = IndexRelationGetNumberOfKeyAttributes (index );
932
932
int i ;
0 commit comments