New issue
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
Support numeric conversions in MySqlDataReader #54
Comments
MySql.Data allows
Calling I'm not in favour of cloning MySQL's lossy and inconsistent data conversion behaviour by default, but can see that it might be important for people porting from the MySql.Data connector. The solution might be to add a new connection string parameter |
Assuming we use a "strict mode" by default, someone who want's MySql.Data's behaviour can get it simply by calling |
One complication is that "The SUM() and AVG() functions return a DECIMAL value for exact-value arguments (integer or DECIMAL)" (http://dev.mysql.com/doc/refman/5.7/en/group-by-functions.html); that is, aggregate functions will promote an Users of another DBMS may not be expecting this (for example, SQL Server returns an |
PomeloFoundation/Pomelo.EntityFrameworkCore.MySql#52 suggests that other MySQL connectors allow
MySqlDataReader.GetInt32
to be called on adecimal
column. Investigate this and add missing implicit numeric conversions.The text was updated successfully, but these errors were encountered: