Update sqlite

This commit is contained in:
sunkaixuan
2025-07-05 15:05:53 +08:00
parent eacf8dcc05
commit e52306cfb2
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
}
}
}

View File

@@ -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;