From 1d5071a57e8dd1df5c0fdc2e7f8f9b1ad1a451a1 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Tue, 26 Sep 2006 18:10:27 +0000 Subject: [PATCH] Don't CREATE OR REPLACE TRIGGER but just CREATE it (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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/xmldb/classes/generators/oci8po/oci8po.class.php b/lib/xmldb/classes/generators/oci8po/oci8po.class.php index c5380dfe84..3fc39dda08 100644 --- a/lib/xmldb/classes/generators/oci8po/oci8po.class.php +++ b/lib/xmldb/classes/generators/oci8po/oci8po.class.php @@ -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"; -- 2.39.5