diff --git a/Src/Asp.Net/SqlSugar/Realization/Sqlite/SqliteProvider.cs b/Src/Asp.Net/SqlSugar/Realization/Sqlite/SqliteProvider.cs index 3454e3a64..a08b24e97 100644 --- a/Src/Asp.Net/SqlSugar/Realization/Sqlite/SqliteProvider.cs +++ b/Src/Asp.Net/SqlSugar/Realization/Sqlite/SqliteProvider.cs @@ -54,6 +54,10 @@ namespace SqlSugar } public override DbCommand GetCommand(string sql, SugarParameter[] parameters) { + if (sql == "-- No table ") + { + sql = "select * from (select 1 as id) t where 1=2 "; + } SQLiteCommand sqlCommand = new SQLiteCommand(sql, (SQLiteConnection)this.Connection); sqlCommand.CommandType = this.CommandType; sqlCommand.CommandTimeout = this.CommandTimeOut;