mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 10:10:16 +08:00
split table no table bug
This commit is contained in:
parent
070b486e8d
commit
be1b8c6d99
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user