Index: openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql,v
diff -u -r1.37 -r1.38
--- openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql	6 Mar 2005 19:09:41 -0000	1.37
+++ openacs-4/packages/acs-kernel/sql/postgresql/postgresql.sql	22 Mar 2005 05:53:21 -0000	1.38
@@ -768,30 +768,30 @@
   sep               varchar;
 begin
 
- if tgtype & 2 then
+ if (tgtype & 2) > 0 then
     description := ''BEFORE '';
  else 
     description := ''AFTER '';
  end if;
 
  sep := '''';
 
- if tgtype & 4 then
+ if (tgtype & 4) > 0 then
     description := description || ''INSERT '';
     sep := ''OR '';
  end if;
 
- if tgtype & 8 then
+ if (tgtype & 8) > 0 then
     description := description || sep || ''DELETE '';
     sep := ''OR '';
  end if;
 
- if tgtype & 16 then
+ if (tgtype & 16) > 0 then
     description := description || sep || ''UPDATE '';
     sep := ''OR '';
  end if;
 
- if tgtype & 1 then
+ if (tgtype & 1) > 0 then
     description := description || ''FOR EACH ROW'';
  else
     description := description || ''STATEMENT'';