Changeset 747 for trunk/lib/PDO.inc.php


Ignore:
Timestamp:
Aug 27, 2021 2:27:14 AM (3 years ago)
Author:
anonymous
Message:

Set default mysql connection charset to utf8mb4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/PDO.inc.php

    r733 r747  
    8888    // Translate between HTML and MySQL character set names.
    8989    public $mysql_character_sets = array(
    90         'utf-8' => 'utf8',
     90        'utf-8' => 'utf8mb4',
    9191        'iso-8859-1' => 'latin1',
    9292    );
     
    255255    public function close()
    256256    {
    257         $app =& App::getInstance();
    258 
    259         if (!$this->_connected) {
    260             throw new \Exception(sprintf('No DB connection to run %s', __METHOD__));
    261         }
    262 
    263257        $this->_connected = false;
    264258        $this->dbh = null;
Note: See TracChangeset for help on using the changeset viewer.