Commit 486375f8 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 755316c3
...@@ -88,13 +88,12 @@ class Doctrine_Export_Firebird extends Doctrine_Export ...@@ -88,13 +88,12 @@ class Doctrine_Export_Firebird extends Doctrine_Export
$table = $this->conn->quoteIdentifier($table, true); $table = $this->conn->quoteIdentifier($table, true);
$name = $this->conn->quoteIdentifier($name, true); $name = $this->conn->quoteIdentifier($name, true);
$triggerSql = 'CREATE TRIGGER ' . $trigger_name . ' FOR ' . $table . ' $triggerSql = 'CREATE TRIGGER ' . $trigger_name . ' FOR ' . $table
ACTIVE BEFORE INSERT POSITION 0 . ' ACTIVE BEFORE INSERT POSITION 0 AS'
AS . ' BEGIN'
BEGIN . ' IF (NEW.' . $name . ' IS NULL OR NEW.' . $name . ' = 0) THEN'
IF (NEW.' . $name . ' IS NULL OR NEW.' . $name . ' = 0) THEN . ' NEW.' . $name . ' = GEN_ID('.$sequence_name.', 1)'
NEW.' . $name . ' = GEN_ID('.$sequence_name.', 1); . ' END';
END';
$result = $this->conn->exec($triggerSql); $result = $this->conn->exec($triggerSql);
// TODO ? $this->_silentCommit(); // TODO ? $this->_silentCommit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment