Skip to content

Commit 9061afa

Browse files
committed
check value
1 parent 5d7da09 commit 9061afa

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/apps/freebcp.c

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,8 @@ file_character(BCPPARAMDATA * pdata, DBPROCESS * dbproc, DBINT dir)
513513
}
514514

515515
bcp_control(dbproc, BCPBATCH, pdata->batchsize);
516-
process_Eflag(pdata, dbproc);
516+
if (!process_Eflag(pdata, dbproc))
517+
return FALSE;
517518

518519
printf("\nStarting copy...\n");
519520

@@ -561,7 +562,9 @@ file_native(BCPPARAMDATA * pdata, DBPROCESS * dbproc, DBINT dir)
561562
}
562563
}
563564

564-
process_Eflag(pdata, dbproc);
565+
if (!process_Eflag(pdata, dbproc))
566+
return FALSE;
567+
565568
printf("\nStarting copy...\n\n");
566569

567570
if (FAIL == bcp_exec(dbproc, &li_rowsread)) {
@@ -586,7 +589,8 @@ file_formatted(BCPPARAMDATA * pdata, DBPROCESS * dbproc, DBINT dir)
586589
if (!set_bcp_hints(pdata, dbproc))
587590
return FALSE;
588591

589-
process_Eflag(pdata, dbproc);
592+
if (!process_Eflag(pdata, dbproc))
593+
return FALSE;
590594

591595
bcp_control(dbproc, BCPFIRST, pdata->firstrow);
592596
bcp_control(dbproc, BCPLAST, pdata->lastrow);

0 commit comments

Comments
 (0)