FirebirdSQL / firebird

Firebird server, client and tools
https://www.firebirdsql.org/
1.19k stars 205 forks source link

Error isc_read_only_trans (335544361) should report SQLSTATE 25006 #8112

Closed mrotteveel closed 2 weeks ago

mrotteveel commented 2 weeks ago

Currently error isc_read_only_trans (335544361) reports SQLSTATE 42000 (syntax error or access rule violation). It should report SQLSTATE 25006 (invalid transaction state, read-only SQL-transaction). See ISO/IEC 9075-2:2023, section 24.1 SQLSTATE, and the general rules for various modifying DML.