We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8b3c03 commit fc00457Copy full SHA for fc00457
pg_fasttransfer.c
@@ -277,13 +277,6 @@ xp_RunFastTransfer_secure(PG_FUNCTION_ARGS)
277
exit_code = -2;
278
}
279
#endif
280
-
281
- if (exit_code != 0) {
282
- total_rows = -1;
283
- total_columns = -1;
284
- transfer_time = -1;
285
- total_time = -1;
286
- }
287
288
/* Parsing sûr de la sortie : on recherche des labels et on utilise strtol avec endptr */
289
char *out = result_output->data;
@@ -357,7 +350,12 @@ xp_RunFastTransfer_secure(PG_FUNCTION_ARGS)
357
350
358
351
PG_END_TRY();
359
352
360
353
+ if (exit_code != 0) {
354
+ total_rows = -1;
355
+ total_columns = -1;
356
+ transfer_time = -1;
+ total_time = -1;
+ }
361
362
// Retourner les résultats
363
values[0] = Int32GetDatum(exit_code);
0 commit comments