{
wxString sql=wxT("SELECT 1 FROM pg_namespace nsp\n")
wxT(" JOIN pg_description des ON des.objoid=nsp.oid\n")
- wxT(" WHERE nspname NOT IN (") + txtSchemaRestr->GetValue() + wxT(")");
+ wxT(" WHERE nspname IN (") + txtSchemaRestr->GetValue() + wxT(")");
wxLogNull nix;
wxString result=connection->ExecuteScalar(sql);
if (!collection->GetServer()->GetDbRestriction().IsEmpty())
{
if (restr.IsEmpty())
- restr = wxT(" WHERE datname NOT IN (");
+ restr = wxT(" WHERE datname IN (");
else
- restr = wxT(" AND datname NOT IN (");
+ restr = wxT(" AND datname IN (");
restr += collection->GetServer()->GetDbRestriction() + wxT(")\n");
}
restr += wxT(" AND nsp.nspparent = 0\n");
if (!collection->GetDatabase()->GetSchemaRestriction().IsEmpty())
- restr += wxT(" AND nspname NOT IN (") + collection->GetDatabase()->GetSchemaRestriction() + wxT(")");
+ restr += wxT(" AND nspname IN (") + collection->GetDatabase()->GetSchemaRestriction() + wxT(")");
wxString sql;