Dotclear


Ignore:
Timestamp:
05/30/18 11:52:24 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Missed these one (see [3754])

File:
1 edited

Legend:

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

    r3753 r3756  
    168168                    if (in_array($last_line_name, $constrained)) { 
    169169                        # UNDEFER 
    170                         if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 
     170                        if ($this->con->syntax() == 'mysql') { 
    171171                            $this->con->execute('SET foreign_key_checks = 1'); 
    172172                        } 
    173173 
    174                         if ($this->con->driver() == 'pgsql') { 
     174                        if ($this->con->syntax() == 'postgresql') { 
    175175                            $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 
    176176                        } 
     
    180180                    if (in_array($line->__name, $constrained)) { 
    181181                        # DEFER 
    182                         if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 
     182                        if ($this->con->syntax() == 'mysql') { 
    183183                            $this->con->execute('SET foreign_key_checks = 0'); 
    184184                        } 
    185185 
    186                         if ($this->con->driver() == 'pgsql') { 
     186                        if ($this->con->syntax() == 'postgresql') { 
    187187                            $this->con->execute('SET CONSTRAINTS ALL IMMEDIATE'); 
    188188                        } 
     
    224224            } 
    225225 
    226             if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli' || $this->con->driver() == 'mysqlimb4') { 
     226            if ($this->con->syntax() == 'mysql') { 
    227227                $this->con->execute('SET foreign_key_checks = 1'); 
    228228            } 
    229229 
    230             if ($this->con->driver() == 'pgsql') { 
     230            if ($this->con->syntax() == 'postgresql') { 
    231231                $this->con->execute('SET CONSTRAINTS ALL DEFERRED'); 
    232232            } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map