Dotclear


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

Add MySQL UTF8-MB4 support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/importExport/inc/flat/class.flat.import.php

    r3323 r3565  
    164164                         if (in_array($last_line_name,$constrained)) { 
    165165                              # 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'); 
    167167                              if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 
    168168                         } 
     
    170170                         if (in_array($line->__name,$constrained)) { 
    171171                              # 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'); 
    173173                              if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL IMMEDIATE'); 
    174174                         } 
     
    209209               } 
    210210 
    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'); 
    212212               if ($this->con->driver() == 'pgsql') $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 
    213213          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map