Skip to content

Commit fc00457

Browse files
static variable error
1 parent a8b3c03 commit fc00457

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

pg_fasttransfer.c

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,6 @@ xp_RunFastTransfer_secure(PG_FUNCTION_ARGS)
277277
exit_code = -2;
278278
}
279279
#endif
280-
281-
if (exit_code != 0) {
282-
total_rows = -1;
283-
total_columns = -1;
284-
transfer_time = -1;
285-
total_time = -1;
286-
}
287280

288281
/* Parsing sûr de la sortie : on recherche des labels et on utilise strtol avec endptr */
289282
char *out = result_output->data;
@@ -357,7 +350,12 @@ xp_RunFastTransfer_secure(PG_FUNCTION_ARGS)
357350
}
358351
PG_END_TRY();
359352

360-
353+
if (exit_code != 0) {
354+
total_rows = -1;
355+
total_columns = -1;
356+
transfer_time = -1;
357+
total_time = -1;
358+
}
361359

362360
// Retourner les résultats
363361
values[0] = Int32GetDatum(exit_code);

0 commit comments

Comments
 (0)