Skip to content

Commit 529e493

Browse files
static variable error
1 parent fc00457 commit 529e493

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pg_fasttransfer.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ xp_RunFastTransfer_secure(PG_FUNCTION_ARGS)
281281
/* Parsing sûr de la sortie : on recherche des labels et on utilise strtol avec endptr */
282282
char *out = result_output->data;
283283
char *token = NULL;
284+
285+
total_rows = -1;
286+
total_columns = -1;
287+
transfer_time = -1;
288+
total_time = -1;
289+
284290
if (out && out[0] != '\0') {
285291
/* Total rows */
286292
token = strstr(out, "Total rows : ");
@@ -350,12 +356,6 @@ xp_RunFastTransfer_secure(PG_FUNCTION_ARGS)
350356
}
351357
PG_END_TRY();
352358

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

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

0 commit comments

Comments
 (0)