Dotclear

Changeset 3565:7b120898d2bd for inc


Ignore:
Timestamp:
07/27/17 17:24:16 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add MySQL UTF8-MB4 support

Location:
inc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • inc/config.php.in

    r3533 r3565  
    1212if (!defined('DC_RC_PATH')) { return; } 
    1313 
    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) 
    1515define('DC_DBDRIVER',''); 
    1616 
  • inc/core/class.dc.blog.php

    r3423 r3565  
    694694          if (!$rs->isEmpty()) 
    695695          { 
    696                if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 
     696               if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 
    697697                    $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 
    698698               } elseif ($this->con->driver() == 'pgsql') { 
     
    19391939          if (!$rs->isEmpty()) 
    19401940          { 
    1941                if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 
     1941               if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 
    19421942                    $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 
    19431943               } elseif ($this->con->driver() == 'pgsql') { 
  • inc/core/class.dc.core.php

    r3402 r3565  
    7272          } elseif ($this->con instanceof mysqliConnection) { 
    7373               mysqliConnection::$weak_locks = true; 
     74          } elseif ($this->con instanceof mysqlimb4Connection) { 
     75               mysqlimb4Connection::$weak_locks = true; 
    7476          } 
    7577 
Note: See TracChangeset for help on using the changeset viewer.

Sites map