mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
Optimize Oracle ADO drivers
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user