Legend:
- Unmodified
- Added
- Removed
-
plugins/importExport/inc/flat/class.flat.import.php
r3323 r3565 164 164 if (in_array($last_line_name,$constrained)) { 165 165 # UNDEFER 166 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' ) $this->con->execute('SET foreign_key_checks = 1');166 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') $this->con->execute('SET foreign_key_checks = 1'); 167 167 if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 168 168 } … … 170 170 if (in_array($line->__name,$constrained)) { 171 171 # DEFER 172 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' ) $this->con->execute('SET foreign_key_checks = 0');172 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') $this->con->execute('SET foreign_key_checks = 0'); 173 173 if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL IMMEDIATE'); 174 174 } … … 209 209 } 210 210 211 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' ) $this->con->execute('SET foreign_key_checks = 1');211 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') $this->con->execute('SET foreign_key_checks = 1'); 212 212 if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 213 213 }
Note: See TracChangeset
for help on using the changeset viewer.