mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-15 20:49:31 +08:00
Performance optimization
This commit is contained in:
parent
57859d11bd
commit
26c46fa217
@ -456,7 +456,7 @@ WHERE table_name = '"+tableName+"'");
|
||||
{
|
||||
List<DbColumnInfo> columns = GetOracleDbType(tableName);
|
||||
string sql = "select * /* " + Guid.NewGuid() + " */ from " +SqlBuilder.GetTranslationTableName(tableName) + " WHERE 1=2 ";
|
||||
if (!this.GetTableInfoList(false).Any(it => it.Name == SqlBuilder.GetTranslationTableName(tableName).TrimStart('\"').TrimEnd('\"')))
|
||||
if (!IsAnyTable(tableName,false))
|
||||
{
|
||||
sql = "select * /* " + Guid.NewGuid() + " */ from \"" + tableName + "\" WHERE 1=2 ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user