firebird
firebird copied to clipboard
Connect using XNET protocol shows different exception if DB is in shutdown state (comparing to INET)
Attempt to connect to DB in shutdown state issues different message if we use XNET protocol: "SQLSTATE = 08006 connection lost to database" (instead of "SQLSTATE = HY000 database shutdown"):
C:\FB\50SS>gfix -shut full -force 0 employee
C:\FB\50SS>echo quit; | C:\FB\50SS\isql inet://employee -q -z
ISQL Version: WI-T5.0.0.592 Firebird 5.0 Initial
Statement failed, SQLSTATE = HY000
database employee shutdown
SQL>
C:\FB\50SS>echo quit; | C:\FB\50SS\isql xnet://employee -q -z
ISQL Version: WI-T5.0.0.592 Firebird 5.0 Initial
Statement failed, SQLSTATE = 08006
connection lost to database
SQL>