Skip to content
Snippets Groups Projects
Commit 1e4d42e2 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Use the utf8mb4 character set in MySQL.

parent d1ff132d
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ class sspmod_sqlauth_Auth_Source_SQL extends sspmod_core_Auth_UserPassBase ...@@ -92,7 +92,7 @@ class sspmod_sqlauth_Auth_Source_SQL extends sspmod_core_Auth_UserPassBase
switch ($driver) { switch ($driver) {
case 'mysql': case 'mysql':
/* Use UTF-8. */ /* Use UTF-8. */
$db->exec("SET NAMES 'utf8'"); $db->exec("SET NAMES 'utf8mb4'");
break; break;
case 'pgsql': case 'pgsql':
/* Use UTF-8. */ /* Use UTF-8. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment