Optimize Oracle ADO drivers

This commit is contained in:
sunkaixuan
2023-10-22 22:43:44 +08:00
parent 593f6597f1
commit d6a0b6c835

View File

@@ -104,6 +104,10 @@ namespace SqlSugar
public override DbCommand GetCommand(string sql, SugarParameter[] parameters)
{
sql = ReplaceKeyWordParameterName(sql, parameters);
if (sql?.EndsWith(';')==true)
{
sql=sql.TrimEnd(';');
}
OracleCommand sqlCommand = new OracleCommand(sql, (OracleConnection)this.Connection);
sqlCommand.BindByName = true;
sqlCommand.CommandType = this.CommandType;