Skip to content

Commit

Permalink
Don't issue SET NAMES as the DBD::MariaDB driver already issue "SET N…
Browse files Browse the repository at this point in the history
…AMES utf8mb4" via C library function (iMSCP::Database::MariaDB)
  • Loading branch information
nuxwin committed Jun 20, 2019
1 parent ff7b099 commit ec2d983
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions engine/PerlLib/iMSCP/Database/MariaDB.pm
Expand Up @@ -62,8 +62,11 @@ sub connect
? "port=$self->{'db'}->{'DATABASE_PORT'}" : ()
)
),
'mariadb_init_command=SET NAMES utf8, SESSION sql_mode = '
. "'NO_AUTO_CREATE_USER', SESSION group_concat_max_len = 65535"
# Don't issue SET NAMES as the DBD::MariaDB driver already issue
# "SET NAMES utf8mb4" via C library function.
# See https://github.com/i-MSCP/imscp/commit/39185a0619eabdc317916817de22d5878e00ba11#r33912557
"SESSION sql_mode = 'NO_AUTO_CREATE_USER',"
. 'SESSION group_concat_max_len = 65535'
);

if ( $self->{'connection'}
Expand Down

0 comments on commit ec2d983

Please sign in to comment.