mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +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)
|
||||
{
|
||||
if (sql == "\r\n")
|
||||
{
|
||||
sql = "SELECT 0";
|
||||
}
|
||||
NpgsqlCommand sqlCommand = new NpgsqlCommand(sql, (NpgsqlConnection)this.Connection);
|
||||
sqlCommand.CommandType = this.CommandType;
|
||||
sqlCommand.CommandTimeout = this.CommandTimeOut;
|
||||
|
Loading…
Reference in New Issue
Block a user