Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Document stricter conversion rules #408

Closed
bgrainger opened this issue Nov 29, 2017 · 0 comments
Closed

Document stricter conversion rules #408

bgrainger opened this issue Nov 29, 2017 · 0 comments

Comments

@bgrainger
Copy link
Member

In Connector/NET, MySqlDataReader.GetX is lax, and will usually succeed when asked to convert a column of any MySqlDbType to the X CLR type (e.g., call GetDecimal on a MEDIUMINT UNSIGNED column, or call GetString on a FLOAT column).

MySqlConnector is much stricter and (currently) mostly only performs Int16/Int32/Int64 conversions.

If the strict conversion rules are kept (see #406) then they should be documented in "Migrating from Connector/NET".

# for free to join this conversation on GitHub. Already have an account? # to comment
Development

No branches or pull requests

1 participant