You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Class PDOAdapter has hard coded charset for creating cache table (only for mysql). Standard charset is now utf8mb4, but cache table is still utf8.
How to reproduce
Line 141 $sql = "CREATE TABLE $this->table ($this->idCol VARBINARY(255) NOT NULL PRIMARY KEY, $this->dataCol MEDIUMBLOB NOT NULL, $this->lifetimeCol INTEGER UNSIGNED, $this->timeCol INTEGER UNSIGNED NOT NULL) COLLATE utf8_bin, ENGINE = InnoDB";
Possible Solution
Remove 'COLLATE utf8_bin' from code above and let user to set COLLATE during creating PDO connection (via dsn, or $options['db_connection_options'] in constructor of PDOAdapter class? Or change utf8 to utf8mb4?