Subject: | You cannot issue a warning in the STORE method |
DBD::ODBC maps the ReadOnly attribute to SQL_ACCESS_MODE.
Some ODBC drivers (SQLite in this case) cannot (legitimately for ODBC) set SQL_ACCESS_MODE and return SQL_SUCCESS_WITH_INFO, option value changed.
It has been decided that a DBD should report a warning in this case but when I changed DBD::ODBC to do this the warning is not seen (despite use warnings, -w and PrintWarn => 1). See https://github.com/mjegh/dbi/commit/3b2d8216f2028040dc6b2b1d1b3ebcfaa264a3ae
I will add a test case and changes for DBD::NullP to illustrate this and issue a pull request.
Martin
--
Martin J. Evans
Wetherby, UK