On 05/07/2024 08:42, Tommi Prami wrote:
> I ran GFix with following command line
>
> gfix.exe -USER XXXXX -PASSWORD yyyyyy -validate -full "C:\Data\TFB4.FDB"
>
> Returned output of one of my test databases is:
>
> Summary of validation errors
> Number of record level warnings : 1
> Number of database page warnings : 1
>
>
> Despite of those warnings, *gfix* returns *0* as exit code.
>
> Is this a bug or by design?
But can be true, and are true AFAIK in this case. It is by design, but I
would consider it a bug.
> I would expect that if there is something found it would return exit
> code other than zero?
As far as I'm aware, gfix will never return a non-zero exit code, or
maybe only if something in gfix itself fails, not if the service call
Firebird performs completes and reports validation errors.
Mark
--
Mark Rotteveel