Subject Re: [firebird-support] Re: Does anyone know ExitCode/ErrorLevel values for gfix?
Author Helen Borrie
At 08:43 p.m. 10/04/2013, un_spoken wrote:
>Ok, I've checked this with gfix version: gfix version WI-V2.5.1.26351 Firebird 2.5
>According to stackoverflow: I can test the error result of application like this:
>So I did a batch file and executed it:
>C:\Program Files (x86)\Firebird\Firebird_2_5\bin>gfix -validate "C:\Program Files (x86)\Firebird\Firebird_2_5\bin\MYBASE-3334.FDB" -user SYSDBA -password masterkey -no_update && echo Done!
>Summary of validation errors
> Number of database page errors : 17
>As you see, even with errors in database gfix will return me errorcode = 0.
>So as far as I see it, there is no reliable way to tell programmatically whether gfix detected error or not.

Quite correct. Error codes are returned when the *program* cannot complete because of an error.

Helen Borrie, Support Consultant, IBPhoenix (Pacific)
Author of "The Firebird Book" and "The Firebird Book Second Edition"