I am using LINQ to Entity Framework to communicate with a MySql database.
The basics seem to be working. I can insert in some cases, however, when I have an entity with a field with a concurrency mode = Fixed for a datetime field, I get a syntax error exception:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (`Id` = 3) AND (`LastModified` = '2011-02-08 10:03:44')' at line 1"
If I copy/paste the above "bad" SQL code into the end of a SELECT statement using Workbench, MySql does not give me any errors. It gives me the correct record.
So it appears that it's giving a false error in this situation.
I am not formulating the SQL statement myself. I have using EF long with the MySql connector to do the dirty work. Is this a bug, or unfinished feature?
I have included a sample project and database model at http://www.houser.ca/files/MySqlEFTest.zip
Vitals:
MySql Community Server 5.5.8
MySql connector 6.3.6
Visual Studio 2010
.NET 4.0
The basics seem to be working. I can insert in some cases, however, when I have an entity with a field with a concurrency mode = Fixed for a datetime field, I get a syntax error exception:
"You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (`Id` = 3) AND (`LastModified` = '2011-02-08 10:03:44')' at line 1"
If I copy/paste the above "bad" SQL code into the end of a SELECT statement using Workbench, MySql does not give me any errors. It gives me the correct record.
So it appears that it's giving a false error in this situation.
I am not formulating the SQL statement myself. I have using EF long with the MySql connector to do the dirty work. Is this a bug, or unfinished feature?
I have included a sample project and database model at http://www.houser.ca/files/MySqlEFTest.zip
Vitals:
MySql Community Server 5.5.8
MySql connector 6.3.6
Visual Studio 2010
.NET 4.0