Browse Source

Update split table

pull/15/MERGE
sunkaixuan 3 years ago
parent
commit
70d51f04f3
  1. 4
      Src/Asp.Net/SqlSugar/Realization/Dm/SqlBuilder/DmQueryBuilder.cs
  2. 4
      Src/Asp.Net/SqlSugar/Realization/Sqlite/SqlBuilder/SqliteQueryBuilder.cs

4
Src/Asp.Net/SqlSugar/Realization/Dm/SqlBuilder/DmQueryBuilder.cs

@ -49,6 +49,10 @@ namespace SqlSugar
}
this.OrderByValue = oldOrderBy;
result = GetSqlQuerySql(result);
if (result.IndexOf("-- No table") > 0)
{
return "-- No table";
}
return result;
}
public override string ToPageSql(string sql, int? take, int? skip, bool isExternal = false)

4
Src/Asp.Net/SqlSugar/Realization/Sqlite/SqlBuilder/SqliteQueryBuilder.cs

@ -62,6 +62,10 @@ namespace SqlSugar
}
this.OrderByValue = oldOrderBy;
result = GetSqlQuerySql(result);
if (result.IndexOf("-- No table") > 0)
{
return "-- No table";
}
return result;
}

Loading…
Cancel
Save