mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:43:02 +01:00
Disconnect from empbuild database on error.
This commit is contained in:
parent
082dcd7b63
commit
7224a0ac91
@ -148,6 +148,7 @@ printf ("Loading Language arrays\n");
|
|||||||
if ( addlang() )
|
if ( addlang() )
|
||||||
{
|
{
|
||||||
printf ("Couldn't load Language arrays\n");
|
printf ("Couldn't load Language arrays\n");
|
||||||
|
EXEC SQL DISCONNECT DB;
|
||||||
exit (FINI_ERROR);
|
exit (FINI_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -155,6 +156,7 @@ printf ("Loading Job blobs\n");
|
|||||||
if ( addjob() )
|
if ( addjob() )
|
||||||
{
|
{
|
||||||
printf ("Couldn't load Job blobs\n");
|
printf ("Couldn't load Job blobs\n");
|
||||||
|
EXEC SQL DISCONNECT DB;
|
||||||
exit (FINI_ERROR);
|
exit (FINI_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -162,6 +164,7 @@ printf ("Loading project blobs \n");
|
|||||||
if ( addproj() )
|
if ( addproj() )
|
||||||
{
|
{
|
||||||
printf ("Couldn't load project blobs\n");
|
printf ("Couldn't load project blobs\n");
|
||||||
|
EXEC SQL DISCONNECT DB;
|
||||||
exit (FINI_ERROR);
|
exit (FINI_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,6 +172,7 @@ printf ("Loading quarter arrays \n");
|
|||||||
if ( addqtr() )
|
if ( addqtr() )
|
||||||
{
|
{
|
||||||
printf ("Couldn't load quarter arrays\n");
|
printf ("Couldn't load quarter arrays\n");
|
||||||
|
EXEC SQL DISCONNECT DB;
|
||||||
exit (FINI_ERROR);
|
exit (FINI_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user