Changeset 3756:66ea0528142b
- Timestamp:
- 05/30/18 11:52:24 (5 years ago)
- Branch:
- default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/install/check.php
r3731 r3756 47 47 } 48 48 49 if ($con-> driver() == 'mysql' || $con->driver() == 'mysqli' || $con->driver() == 'mysqlimb4') {49 if ($con->syntax() == 'mysql') { 50 50 if (version_compare($con->version(), '4.1', '<')) { 51 51 $err[] = sprintf(__('MySQL version is %s (4.1 or earlier needed).'), $con->version()); -
plugins/importExport/inc/flat/class.flat.import.php
r3753 r3756 168 168 if (in_array($last_line_name, $constrained)) { 169 169 # UNDEFER 170 if ($this->con-> driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') {170 if ($this->con->syntax() == 'mysql') { 171 171 $this->con->execute('SET foreign_key_checks = 1'); 172 172 } 173 173 174 if ($this->con-> driver() == 'pgsql') {174 if ($this->con->syntax() == 'postgresql') { 175 175 $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 176 176 } … … 180 180 if (in_array($line->__name, $constrained)) { 181 181 # DEFER 182 if ($this->con-> driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') {182 if ($this->con->syntax() == 'mysql') { 183 183 $this->con->execute('SET foreign_key_checks = 0'); 184 184 } 185 185 186 if ($this->con-> driver() == 'pgsql') {186 if ($this->con->syntax() == 'postgresql') { 187 187 $this->con->execute('SET CONSTRAINTS ALL IMMEDIATE'); 188 188 } … … 224 224 } 225 225 226 if ($this->con-> driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') {226 if ($this->con->syntax() == 'mysql') { 227 227 $this->con->execute('SET foreign_key_checks = 1'); 228 228 } 229 229 230 if ($this->con-> driver() == 'pgsql') {230 if ($this->con->syntax() == 'postgresql') { 231 231 $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 232 232 }
Note: See TracChangeset
for help on using the changeset viewer.