File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,11 @@ static const CopyFromRoutine CopyFromRoutineBinary = {
153
153
154
154
/* Return a COPY FROM routine for the given options */
155
155
static const CopyFromRoutine *
156
- CopyFromGetRoutine (CopyFormatOptions opts )
156
+ CopyFromGetRoutine (const CopyFormatOptions * opts )
157
157
{
158
- if (opts . csv_mode )
158
+ if (opts -> csv_mode )
159
159
return & CopyFromRoutineCSV ;
160
- else if (opts . binary )
160
+ else if (opts -> binary )
161
161
return & CopyFromRoutineBinary ;
162
162
163
163
/* default is text */
@@ -1574,7 +1574,7 @@ BeginCopyFrom(ParseState *pstate,
1574
1574
ProcessCopyOptions (pstate , & cstate -> opts , true /* is_from */ , options );
1575
1575
1576
1576
/* Set the format routine */
1577
- cstate -> routine = CopyFromGetRoutine (cstate -> opts );
1577
+ cstate -> routine = CopyFromGetRoutine (& cstate -> opts );
1578
1578
1579
1579
/* Process the target relation */
1580
1580
cstate -> rel = rel ;
Original file line number Diff line number Diff line change @@ -174,11 +174,11 @@ static const CopyToRoutine CopyToRoutineBinary = {
174
174
175
175
/* Return a COPY TO routine for the given options */
176
176
static const CopyToRoutine *
177
- CopyToGetRoutine (CopyFormatOptions opts )
177
+ CopyToGetRoutine (const CopyFormatOptions * opts )
178
178
{
179
- if (opts . csv_mode )
179
+ if (opts -> csv_mode )
180
180
return & CopyToRoutineCSV ;
181
- else if (opts . binary )
181
+ else if (opts -> binary )
182
182
return & CopyToRoutineBinary ;
183
183
184
184
/* default is text */
@@ -700,7 +700,7 @@ BeginCopyTo(ParseState *pstate,
700
700
ProcessCopyOptions (pstate , & cstate -> opts , false /* is_from */ , options );
701
701
702
702
/* Set format routine */
703
- cstate -> routine = CopyToGetRoutine (cstate -> opts );
703
+ cstate -> routine = CopyToGetRoutine (& cstate -> opts );
704
704
705
705
/* Process the source/target relation or query */
706
706
if (rel )
You can’t perform that action at this time.
0 commit comments