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