[MDEV-10191] non convertible chars convert() resulted in Null instead "?" on Windows Created: 2016-06-08 Updated: 2020-08-25 Resolved: 2017-09-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 10.1.4, 10.1, 10.2 |
| Fix Version/s: | 10.1.27, 10.2.9, 10.3.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Richard Stracke | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
Windows, reproduced on Windows Server 2012 R2 Standard Edition 64bit |
||
| Description |
|
All Linux Versions and Windows before MariaDB 10.1.4 On Windows and all Versions starting from 10.1.4 |
| Comments |
| Comment by Alexander Barkov [ 2016-06-08 ] | |||||||||||||||||||||||||||||||
|
Can you please send results of these queries:
Thanks. | |||||||||||||||||||||||||||||||
| Comment by Richard Stracke [ 2016-06-08 ] | |||||||||||||||||||||||||||||||
|
Certainly. SHOW VARIABLES LIKE 'character_set_%'; "Variable_name" "Value" SELECT HEX('ABCMogę jeśćDEF'); 4142434D6F67C499206A65C59BC487444546 | |||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2016-06-08 ] | |||||||||||||||||||||||||||||||
|
Thank you! Which client is it? Windows console does not support UTF8. Also, I could not reproduce the problem on Linux.
Which client are you using on Linux? Any other details which can help to reproduce the problem would be very appreciated. Thanks! | |||||||||||||||||||||||||||||||
| Comment by Richard Stracke [ 2016-06-08 ] | |||||||||||||||||||||||||||||||
|
Sorry, if I don't describe it clear enough. The Issue onaly oocurs on Windows since Version 10.1.4 . I use the official MariaDB client for Window: HeidiSQL regards, Richard | |||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2016-06-09 ] | |||||||||||||||||||||||||||||||
|
Thanks for the additional info. Got expected results:
with a warning:
| |||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2016-06-09 ] | |||||||||||||||||||||||||||||||
|
Tried with MariaDB Server 10.1.15 on Windows 7, with HeidiSQL 9.3.0.4984 running on the same machine. | |||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2016-06-09 ] | |||||||||||||||||||||||||||||||
|
Perhaps the problem is on the HeidiSQL side... Can you please provide some more information:
Thanks! | |||||||||||||||||||||||||||||||
| Comment by Richard Stracke [ 2016-06-09 ] | |||||||||||||||||||||||||||||||
|
It returns null. Version is 9.1.0.4867. Please consider, that a customer have the same results. Valerii have checked on console as well. I quote his note: Let me share my test results. Windows first:
Richard | |||||||||||||||||||||||||||||||
| Comment by Richard Stracke [ 2016-06-09 ] | |||||||||||||||||||||||||||||||
|
Hi, i forgot the warning. | |||||||||||||||||||||||||||||||
| Comment by Alexander Barkov [ 2016-06-09 ] | |||||||||||||||||||||||||||||||
|
Valerii helped to track the problem down.
returns
while this:
returns
| |||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2017-08-21 ] | |||||||||||||||||||||||||||||||
|
Windows, MSI installatiion is setting sql_mode to contain STRICT_TRANS_TABLES. This has its roots back to how MySQL handled it (since 4.1 or so), and also was discussed with QA engineer when MSI installer was implemented. Also MariaDB 10.2 is using this bit STRICT_TRANS_TABLES by default cross-plattform. Everyone can set sql_mode to another value, if defaults do not work well with the app. | |||||||||||||||||||||||||||||||
| Comment by Vladislav Vaintroub [ 2017-08-21 ] | |||||||||||||||||||||||||||||||
|
reassigning to bar to check. |