File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments