FirebirdSQL / firebird

Firebird server, client and tools
https://firebirdsql.org
1.26k stars 217 forks source link

isql error code #8190

Closed piervalli closed 4 months ago

piervalli commented 4 months ago

Dear,

I have created this script

SET bin="C:\Program Files\Firebird\Firebird_5_0"
SET script=./indexSql.txt
SET username=SYSDBA
SET password=firebirdsql
SET PATDB=c:\temp\database.fdb
%bin%\isql -i %script% -u %username% -p %password% %PATDB%
if %ERRORLEVEL% NEQ 0 echo Error

If the database does not exists isql return always 0, It should be return an error code.

What do you think?

Thanks Pier

hvlad commented 4 months ago

Did you tried -bail switch https://www.firebirdsql.org/file/documentation/html/en/firebirddocs/isql/firebird-isql.html#isql-switches

or command https://www.firebirdsql.org/file/documentation/html/en/firebirddocs/isql/firebird-isql.html#isql-set-bail

?

piervalli commented 4 months ago

Sorry, it is works with -b

Thanks

piervalli commented 4 months ago

Resolved