ByteFX.Data was renamed to ByteFX.MySqlClient by bytefx, so the driver for bytefx should be updated to load the command and connection object from the right dll.
Instead of connectionType = System.Type.GetType("ByteFX.Data.MySqlClient.MySqlConnection, ByteFX.Data"); commandType = System.Type.GetType("ByteFX.Data.MySqlClient.MySqlCommand, ByteFX.Data");
connectionType = System.Type.GetType("ByteFX.Data.MySqlClient.MySqlConnection, ByteFX.MySqlClient"); commandType = System.Type.GetType("ByteFX.Data.MySqlClient.MySqlCommand, ByteFX.MySqlClient"); should be written.
As I saw, the internal naming of the namespaces and classes wasn't changed.
As many issues as can be fixed with MySql have been.
Former user
December 6, 2004 at 11:12 AM
Here are my changes to Connector/NET. They're not in form of a patch, because I haven't found a suitable diff.exe that would work on directories. Instead I just zipped the files I have changed.
This patch changes MySqlDateTime to round DateTime.MinValue to a zero date (0000-00-00) on writes, and MySqlDataReader.Get() to return DateTime instead of MySqlDateTime. To convert zero dates to DateTime.MinValue (on reads) you have to also include RoundZeroDatetime=true option in your connection string, otherwise reading zero dates causes an exception. Actually, enabling the rounding is strongly recommended, otherwise you'll be able to write zero dates to the DB, but will not be able to read them back.
Former user
December 6, 2004 at 1:35 AM
Ah, yes, I completely forgot about my changes to Connector/NET, that's what fixes problems with DateTimes. I will probably put them somewhere here later (have to work now )
ByteFX.Data was renamed to ByteFX.MySqlClient by bytefx, so the driver for bytefx should be updated to load the command and connection object from the right dll.
Instead of
connectionType = System.Type.GetType("ByteFX.Data.MySqlClient.MySqlConnection, ByteFX.Data");
commandType = System.Type.GetType("ByteFX.Data.MySqlClient.MySqlCommand, ByteFX.Data");
connectionType = System.Type.GetType("ByteFX.Data.MySqlClient.MySqlConnection, ByteFX.MySqlClient");
commandType = System.Type.GetType("ByteFX.Data.MySqlClient.MySqlCommand, ByteFX.MySqlClient");
should be written.
As I saw, the internal naming of the namespaces and classes wasn't changed.