Open GoogleCodeExporter opened 9 years ago
This was an error in Dapper Extensions - MySqlDialect.cs:
Changed the GetIdentitySql(string tableName) from:
public override string GetIdentitySql(string tableName)
{
return "SELECT LAST_INSERT_ID() AS Id";
}
to:
public override string GetIdentitySql(string tableName)
{
return "SELECT CONVERT(LAST_INSERT_ID(), SIGNED INTEGER) AS ID";
}
Please close this report
Original comment by madsco...@gmail.com
on 24 May 2014 at 8:38
Original issue reported on code.google.com by
madsco...@gmail.com
on 23 May 2014 at 11:23