firebird icon indicating copy to clipboard operation
firebird copied to clipboard

Wrong error code output in EDS

Open aafemt opened this issue 5 months ago • 11 comments

If the status vector contains isc_arg_sql_state, EDS code writes SQLSTATE's string address to error message instead of following GDS status like this:

Statement failed, SQLSTATE = 42000 
Execute statement error at attach : 
335544421 : connection rejected by remote interface 
140707296949552 : [unixODBC][SQLite]connect failed 

Here actual error code is isc_random (335544382), not 140707296949552.

aafemt avatar Sep 20 '24 15:09 aafemt