Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reported for Connector/NET: https://bugs.mysql.com/bug.php?id=95984
MySQL Server disallows MYSQL_TYPE_JSON as a prepared statement column type: https://github.com/mysql/mysql-server/blob/124c7ab1d6f914637521fd4463a993aa73403513/sql/sql_prepare.cc#L636-L639
MYSQL_TYPE_JSON
However, MySqlDbType.VarChar or MySqlDbType.Binary will be accepted (and parsed/validated as JSON). This code needs to be fixed to send JSON as String:
MySqlDbType.VarChar
MySqlDbType.Binary
String
MySqlConnector/src/MySqlConnector/Core/TypeMapper.cs
Lines 377 to 378 in edba329
The text was updated successfully, but these errors were encountered:
ce16109
Fixed in 0.57.0.
Sorry, something went wrong.
No branches or pull requests
bgrainger commentedJun 25, 2019
Reported for Connector/NET: https://bugs.mysql.com/bug.php?id=95984
MySQL Server disallows
MYSQL_TYPE_JSON
as a prepared statement column type: https://github.com/mysql/mysql-server/blob/124c7ab1d6f914637521fd4463a993aa73403513/sql/sql_prepare.cc#L636-L639However,
MySqlDbType.VarChar
orMySqlDbType.Binary
will be accepted (and parsed/validated as JSON). This code needs to be fixed to send JSON asString
:MySqlConnector/src/MySqlConnector/Core/TypeMapper.cs
Lines 377 to 378 in edba329
The text was updated successfully, but these errors were encountered: