Skip to content

NullReferenceException from GetMySqlDbType #845

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

Closed
MaceWindu opened this issue Jul 7, 2020 · 4 comments
Closed

NullReferenceException from GetMySqlDbType #845

MaceWindu opened this issue Jul 7, 2020 · 4 comments

Comments

@MaceWindu
Copy link
Contributor

MaceWindu commented Jul 7, 2020

MySqlConnector 0.69.5

Similar to #812 but for geometrycollection type

System.NullReferenceException
   at MySqlConnector.Core.TypeMapper.GetMySqlDbType(String typeName, Boolean unsigned, Int32 length) in /_/src/MySqlConnector/Core/TypeMapper.cs:line 169

image

Triggered when execute this procedure with SchemaOnly command behavior

@MaceWindu
Copy link
Contributor Author

FYI, MySql.Data also cannot handle this procedure

@bgrainger
Copy link
Member

I can only reproduce with MySQL Server 8.0, not 5.7; not yet sure why it's server-dependent.

@bgrainger
Copy link
Member

This is caused by MySQL Server 8.0 changing the standard alias for this data type to GEOMCOLLECTION: https://dev.mysql.com/worklog/task/?id=2388

@bgrainger
Copy link
Member

Fixed in 0.69.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants