summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorChristian Ehrlicher <ch.ehrlicher@gmx.de>2021-01-16 21:04:09 +0100
committerChristian Ehrlicher <ch.ehrlicher@gmx.de>2021-03-19 09:11:38 +0000
commite4bd73dc54542fe16121825c2a369b7f863e0de8 (patch)
treeaa369e38b5baec8593387e230ecde6e55b86b6c7 /tests/auto
parent969337bcfd6af6d91b988e4b412703274a0b5877 (diff)
QSql/MariaDB/MySQL: use utf-8 as encoding for username and password
The mariadb driver sets the encoding for the connection to utf-8 but only after the username and password was already set. Therefore non-ascii characters were not correctly encoded when the local character set was not the default one from the database. Move mysql_set_character_set() above the username/password setting and encode all as utf-8 instead local8Bit. Fixes: QTBUG-55444 Change-Id: Iff7ee24159d54b578cd854e620aa814d72da3801 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions