mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 19:15:10 +08:00
Synchronization code
This commit is contained in:
parent
0b49496bb9
commit
422490e707
@ -104,7 +104,7 @@ namespace SqlSugar
|
||||
public override DbCommand GetCommand(string sql, SugarParameter[] parameters)
|
||||
{
|
||||
sql = ReplaceKeyWordParameterName(sql, parameters);
|
||||
if (sql?.EndsWith(";")==true&& sql?.TrimStart()?.StartsWith("begin")!=true)
|
||||
if (sql?.EndsWith(";")==true&& sql?.TrimStart()?.ToLower().StartsWith("begin")!=true && sql?.TrimStart()?.ToLower().Contains("begin") != true)
|
||||
{
|
||||
sql=sql.TrimEnd(';');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user