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

Confusing behavior for statement::bind with character types #208

Closed anarthal closed 6 months ago

anarthal commented 8 months ago

This is correct:

stmt.bind(uint8_t(42)); // understood as an integer

But this is confusing and should probably not be allowed:

stmt.bind('a'); // understood as an integer too, 97

Applies to char, wchar_t, and charN_t