diff --git a/Src/Asp.Net/SqlSugar/Realization/QuestDB/QuestDBProvider.cs b/Src/Asp.Net/SqlSugar/Realization/QuestDB/QuestDBProvider.cs index 08e487821..45f04ff55 100644 --- a/Src/Asp.Net/SqlSugar/Realization/QuestDB/QuestDBProvider.cs +++ b/Src/Asp.Net/SqlSugar/Realization/QuestDB/QuestDBProvider.cs @@ -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;