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)
This commit is contained in:
stronk7 2006-09-26 18:10:27 +00:00
parent e88ecd1b08
commit 1d5071a57e

View 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";