fix missing trigger name in trigger def
authorchriskl <chriskl>
Wed, 26 Mar 2003 05:59:05 +0000 (05:59 +0000)
committerchriskl <chriskl>
Wed, 26 Mar 2003 05:59:05 +0000 (05:59 +0000)
classes/database/Postgres.php

index 8350491b1e60de3396270e94814a70fdeb747f2f..98e5535d316ec8067ad163f0cdb1454b9f206cb3 100755 (executable)
@@ -4,7 +4,7 @@
  * A class that implements the DB interface for Postgres
  * Note: This class uses ADODB and returns RecordSets.
  *
- * $Id: Postgres.php,v 1.67 2003/03/26 03:43:53 chriskl Exp $
+ * $Id: Postgres.php,v 1.68 2003/03/26 05:59:05 chriskl Exp $
  */
 
 // @@@ THOUGHT: What about inherits? ie. use of ONLY???
@@ -1671,6 +1671,8 @@ class Postgres extends BaseDB {
                else
                        $tgdef = 'CREATE TRIGGER ';
 
+               $tgdef .= "\"{$trigger['tgname']}\" ";
+
                // Trigger type
                $findx = 0;
                if ($trigger['tgtype'] & TRIGGER_TYPE_BEFORE == TRIGGER_TYPE_BEFORE)