mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-11 08:08:00 +08:00
Synchronization code
This commit is contained in:
parent
de9235d832
commit
67ed83dd27
@ -56,6 +56,10 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public override DbCommand GetCommand(string sql, SugarParameter[] parameters)
|
public override DbCommand GetCommand(string sql, SugarParameter[] parameters)
|
||||||
{
|
{
|
||||||
|
if (sql == "\r\n")
|
||||||
|
{
|
||||||
|
sql = "SELECT 0";
|
||||||
|
}
|
||||||
NpgsqlCommand sqlCommand = new NpgsqlCommand(sql, (NpgsqlConnection)this.Connection);
|
NpgsqlCommand sqlCommand = new NpgsqlCommand(sql, (NpgsqlConnection)this.Connection);
|
||||||
sqlCommand.CommandType = this.CommandType;
|
sqlCommand.CommandType = this.CommandType;
|
||||||
sqlCommand.CommandTimeout = this.CommandTimeOut;
|
sqlCommand.CommandTimeout = this.CommandTimeOut;
|
||||||
|
Loading…
Reference in New Issue
Block a user