boostorg / mysql

MySQL C++ client based on Boost.Asio
https://www.boost.org/doc/libs/master/libs/mysql
Boost Software License 1.0
252 stars 32 forks source link

Static interface type mismatch errors should be non-fatal #212

Open anarthal opened 7 months ago

anarthal commented 7 months ago

Currently, when the static interface finds a type mismatch, no more packets are read, thus making further operations impossible.

Rationale: a static interface type mismatch means that a serious error has occurred. Either the type definitions must be updated (which needs rebuilding) or the database definitions are out of sync (can be solved by closing and re-opening the connection, as in a network failure).

However, this causes surprises. Following the principle of least surprise, it would be good to make these errors non-fatal.

See #211