mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-08 06:37:57 +08:00
Fixed Questdb empty Sql error
This commit is contained in:
parent
95573019ce
commit
338a2a4ad0
@ -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