Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Fix the refresh trigger SQL
Browse files Browse the repository at this point in the history
Per a report from Rob Hart.
  • Loading branch information
gleu committed Aug 25, 2012
1 parent 49a3419 commit 8edcfe2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pgadmin/schema/pgTrigger.cpp
Expand Up @@ -400,14 +400,14 @@ pgObject *pgTriggerFactory::CreateObjects(pgCollection *coll, ctlTree *browser,
wxT(" WHERE ");
if (collection->GetDatabase()->connection()->BackendMinimumVersion(9, 0))
{
trig_sql += wxT("NOT tgisinternal\n AND ");
trig_sql += wxT("NOT tgisinternal");
}
else
{
trig_sql += wxT("tgconstraint=0 \n AND ");
trig_sql += wxT("tgconstraint=0");
}
if (restriction.IsEmpty())
trig_sql += wxT("tgrelid = ") + collection->GetOidStr() + wxT("\n");
trig_sql += wxT("\n AND tgrelid = ") + collection->GetOidStr() + wxT("\n");
else
trig_sql += restriction + wxT("\n");
trig_sql += wxT(" ORDER BY tgname");
Expand Down

0 comments on commit 8edcfe2

Please sign in to comment.