NickCraver / StackExchange.Exceptional

Error handler used for the Stack Exchange network
https://nickcraver.com/StackExchange.Exceptional/
Apache License 2.0
858 stars 170 forks source link

Update MySqlConnector to version 1.2.0. Fix usings to use new namespace. #199

Closed johnboker closed 3 years ago

johnboker commented 3 years ago

I'm not 100% sure if this will work, I'm not able to run the tests on my machine.

This might also cause other issues if trying to use MySqlConnector < 1.0.0. Is there a way in a config to change the namespace of a type?

https://mysqlconnector.net/overview/version-history/

NickCraver commented 3 years ago

@bgrainger Any downsides here? I always look to you on upgrading the dependency thoughts - since we'd be downstream and users only load 1, could have the namespace conflicts across usages but that's also an easy fix - cool to upgrade at the dependency level here you think?

bgrainger commented 3 years ago

Doing this upgrade makes sense to me; otherwise users (of StackExchange.Exceptional.MySQL) will be locked to a pre-1.0 version of MySqlConnector. Since 1.x has been out for nine months now, I would expect that most users have upgraded, or would want to upgrade.

johnboker commented 3 years ago

What I ended up doing for my own use was created a new MySQLErrorStore and just not use the standard one. I think updating this would be good, but also have a MySQLErrorStore-legacy for people who rely on the old connector for some reason.

https://gist.github.com/johnboker/96afe98e0d047ac81d7db3f738b217bf

NickCraver commented 3 years ago

Merging in for the next release (I'll try and get to this soon) - thank you both!