]> git.mjollnir.org Git - moodle.git/commitdiff
Don't CREATE OR REPLACE TRIGGER but just CREATE it
authorstronk7 <stronk7>
Tue, 26 Sep 2006 18:10:27 +0000 (18:10 +0000)
committerstronk7 <stronk7>
Tue, 26 Sep 2006 18:10:27 +0000 (18:10 +0000)
(so we'll be able to detect duplicate name with an
error instead of getting false success)

lib/xmldb/classes/generators/oci8po/oci8po.class.php

index c5380dfe8416c831d63a44439f7f68e5f1208daf..3fc39dda089dcfd2c3bbb86da9c68d8494608646 100644 (file)
@@ -145,7 +145,7 @@ class XMLDBoci8po extends XMLDBgenerator {
 
         $trigger_name = $this->getNameForObject($xmldb_table->getName(), $xmldb_field->getName(), 'trg');
 
-        $trigger = "CREATE OR REPLACE TRIGGER " . $trigger_name;
+        $trigger = "CREATE TRIGGER " . $trigger_name;
         $trigger.= "\n    BEFORE INSERT";
         $trigger.= "\nON " . $this->getEncQuoted($this->prefix . $xmldb_table->getName());
         $trigger.= "\n    FOR EACH ROW";