mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-26 18:59:17 +08:00
Synchronization code
This commit is contained in:
@@ -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(';');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user