mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-25 04:27:14 +08:00
split table no table bug
This commit is contained in:
@@ -427,7 +427,10 @@ namespace SqlSugar
|
||||
|
||||
public virtual string ToCountSql(string sql)
|
||||
{
|
||||
|
||||
if (sql != null && sql.Contains("-- No table"))
|
||||
{
|
||||
return "-- No table";
|
||||
}
|
||||
return string.Format(" SELECT COUNT(1) FROM ({0}) CountTable ", sql);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user