8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:03:03 +01:00

Disconnect from empbuild database on error.

This commit is contained in:
paul_reeves 2015-06-26 15:52:56 +00:00
parent 082dcd7b63
commit 7224a0ac91

View File

@ -148,6 +148,7 @@ printf ("Loading Language arrays\n");
if ( addlang() )
{
printf ("Couldn't load Language arrays\n");
EXEC SQL DISCONNECT DB;
exit (FINI_ERROR);
}
@ -155,6 +156,7 @@ printf ("Loading Job blobs\n");
if ( addjob() )
{
printf ("Couldn't load Job blobs\n");
EXEC SQL DISCONNECT DB;
exit (FINI_ERROR);
}
@ -162,6 +164,7 @@ printf ("Loading project blobs \n");
if ( addproj() )
{
printf ("Couldn't load project blobs\n");
EXEC SQL DISCONNECT DB;
exit (FINI_ERROR);
}
@ -169,6 +172,7 @@ printf ("Loading quarter arrays \n");
if ( addqtr() )
{
printf ("Couldn't load quarter arrays\n");
EXEC SQL DISCONNECT DB;
exit (FINI_ERROR);
}