mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +08:00
Update sqlite
This commit is contained in:
@@ -210,7 +210,7 @@ namespace SqlSugar
|
||||
const string insertPrefix = "INSERT INTO ";
|
||||
if (cmd.CommandText.StartsWith(insertPrefix))
|
||||
{
|
||||
cmd.CommandText = "INSERT OR IGNORE " + cmd.CommandText.Substring(insertPrefix.Length);
|
||||
cmd.CommandText = "INSERT OR IGNORE INTO " + cmd.CommandText.Substring(insertPrefix.Length);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -79,7 +79,7 @@ namespace SqlSugar
|
||||
if (MySqlIgnore)
|
||||
{
|
||||
batchInsetrSql.Remove(0, "INSERT INTO `".Length);
|
||||
batchInsetrSql.Insert(0, "INSERT OR IGNORE `");
|
||||
batchInsetrSql.Insert(0, "INSERT OR IGNORE INTO `");
|
||||
}
|
||||
var result = batchInsetrSql.ToString();
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user