Changeset 3565:7b120898d2bd
- Timestamp:
- 07/27/17 17:24:16 (8 years ago)
- Branch:
- default
- Files:
-
- 6 edited
-
admin/install/check.php (modified) (1 diff)
-
admin/install/wizard.php (modified) (1 diff)
-
inc/config.php.in (modified) (1 diff)
-
inc/core/class.dc.blog.php (modified) (2 diffs)
-
inc/core/class.dc.core.php (modified) (1 diff)
-
plugins/importExport/inc/flat/class.flat.import.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
admin/install/check.php
r3137 r3565 49 49 } 50 50 51 if ($con->driver() == 'mysql' || $con->driver() == 'mysqli' )51 if ($con->driver() == 'mysql' || $con->driver() == 'mysqli' || $con->driver() == 'mysqlimb4') 52 52 { 53 53 if (version_compare($con->version(),'4.1','<')) -
admin/install/wizard.php
r3404 r3565 201 201 '<form action="wizard.php" method="post">'. 202 202 '<p><label class="required" for="DBDRIVER"><abbr title="'.__('Required field').'">*</abbr> '.__('Database type:').'</label> '. 203 form::combo('DBDRIVER',array(__('MySQL (deprecated)')=>'mysql',__('MySQLi')=>'mysqli',__(' PostgreSQL')=>'pgsql',__('SQLite')=>'sqlite'),$DBDRIVER).'</p>'.203 form::combo('DBDRIVER',array(__('MySQL (deprecated)')=>'mysql',__('MySQLi')=>'mysqli',__('MySQLi (full UTF-8)')=>'mysqlimb4',__('PostgreSQL')=>'pgsql',__('SQLite')=>'sqlite'),$DBDRIVER).'</p>'. 204 204 '<p><label for="DBHOST">'.__('Database Host Name:').'</label> '. 205 205 form::field('DBHOST',30,255,html::escapeHTML($DBHOST)).'</p>'. -
inc/config.php.in
r3533 r3565 12 12 if (!defined('DC_RC_PATH')) { return; } 13 13 14 // Database driver (mysql (deprecated, disabled in PHP7), mysqli, pgsql, sqlite)14 // Database driver (mysql (deprecated, disabled in PHP7), mysqli, mysqlimb4 (full UTF-8), pgsql, sqlite) 15 15 define('DC_DBDRIVER',''); 16 16 -
inc/core/class.dc.blog.php
r3423 r3565 694 694 if (!$rs->isEmpty()) 695 695 { 696 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' ) {696 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 697 697 $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 698 698 } elseif ($this->con->driver() == 'pgsql') { … … 1939 1939 if (!$rs->isEmpty()) 1940 1940 { 1941 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' ) {1941 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 1942 1942 $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 1943 1943 } elseif ($this->con->driver() == 'pgsql') { -
inc/core/class.dc.core.php
r3402 r3565 72 72 } elseif ($this->con instanceof mysqliConnection) { 73 73 mysqliConnection::$weak_locks = true; 74 } elseif ($this->con instanceof mysqlimb4Connection) { 75 mysqlimb4Connection::$weak_locks = true; 74 76 } 75 77 -
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.
