mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 18:22:23 +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)
|
public override DbCommand GetCommand(string sql, SugarParameter[] parameters)
|
||||||
{
|
{
|
||||||
sql = ReplaceKeyWordParameterName(sql, parameters);
|
sql = ReplaceKeyWordParameterName(sql, parameters);
|
||||||
|
if (sql?.EndsWith(';')==true)
|
||||||
|
{
|
||||||
|
sql=sql.TrimEnd(';');
|
||||||
|
}
|
||||||
OracleCommand sqlCommand = new OracleCommand(sql, (OracleConnection)this.Connection);
|
OracleCommand sqlCommand = new OracleCommand(sql, (OracleConnection)this.Connection);
|
||||||
sqlCommand.BindByName = true;
|
sqlCommand.BindByName = true;
|
||||||
sqlCommand.CommandType = this.CommandType;
|
sqlCommand.CommandType = this.CommandType;
|
||||||
|
Reference in New Issue
Block a user