mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-29 01:47:06 +08:00
Optimize pgsql
This commit is contained in:
parent
b0a9e1cef1
commit
fc86ea4e00
@ -201,7 +201,7 @@ namespace SqlSugar
|
||||
{
|
||||
get
|
||||
{
|
||||
return " Select count(1) from (SELECT to_regclass('{0}') as c ) t where t.c is not null";
|
||||
return " SELECT count(1) WHERE upper('{0}') IN ( SELECT upper(indexname) FROM pg_indexes )";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user