firebird icon indicating copy to clipboard operation
firebird copied to clipboard

Connect using XNET protocol shows different exception if DB is in shutdown state (comparing to INET)

Open pavel-zotov opened this issue 3 years ago • 0 comments

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>

pavel-zotov avatar Jul 23 '22 11:07 pavel-zotov