8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 09:20:39 +01:00

It's better to always check isql return code

This commit is contained in:
alexpeshkoff 2013-11-20 12:03:22 +00:00
parent d9adc6d7c9
commit 9efc7cb4d2

View File

@ -111,13 +111,27 @@ if (system (cmd))
printf ("Turning off indices and triggers \n");
sprintf (cmd, "isql %s -i indexoff.sql", Db_name);
system (cmd);
if (system (cmd))
{
printf ("Couldn't turn off indices and triggers \n");
exit (FINI_ERROR);
}
printf ("Loading column data\n");
sprintf (cmd, "isql %s -i empdml.sql", Db_name);
system (cmd);
if (system (cmd))
{
printf ("Couldn't load column data \n");
exit (FINI_ERROR);
}
printf ("Turning on indices and triggers \n");
sprintf (cmd, "isql %s -i indexon.sql", Db_name);
system (cmd);
if (system (cmd))
{
printf ("Couldn't turn on indices and triggers \n");
exit (FINI_ERROR);
}
EXEC SQL CONNECT DB;
if (SQLCODE)