Changeset 1743:a659700da036 for plugins/importExport/inc
Legend:
- Unmodified
- Added
- Removed
-
plugins/importExport/inc/flat/class.flat.import.php
r1093 r1743 160 160 if (in_array($last_line_name,$constrained)) { 161 161 # UNDEFER 162 if ($this->con->driver() == 'mysql' ) $this->con->execute('SET foreign_key_checks = 1');162 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') $this->con->execute('SET foreign_key_checks = 1'); 163 163 if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 164 164 } … … 166 166 if (in_array($line->__name,$constrained)) { 167 167 # DEFER 168 if ($this->con->driver() == 'mysql' ) $this->con->execute('SET foreign_key_checks = 0');168 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') $this->con->execute('SET foreign_key_checks = 0'); 169 169 if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL IMMEDIATE'); 170 170 } … … 205 205 } 206 206 207 if ($this->con->driver() == 'mysql' ) $this->con->execute('SET foreign_key_checks = 1');207 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') $this->con->execute('SET foreign_key_checks = 1'); 208 208 if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 209 209 }
Note: See TracChangeset
for help on using the changeset viewer.