[ODBC-73] falscher Zeichensatz bei Recordsets mit DAO Object Library Created: 2016-12-13 Updated: 2017-03-06 Resolved: 2017-03-06 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | None |
| Affects Version/s: | 2.0.12, 2.0.13 |
| Fix Version/s: | 2.0.14, 3.0.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Kurt Pfleger | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
MariaDB 10.1.16, Charset uft8, Access 2010/2016, DAO 3.6, VBA |
||
| Attachments: |
|
| Description |
|
VBA: Recordset.Fields() ... liefert falsche Zeichensätze von Textfeldern zurück und verursacht in Folge Datentyp-Fehler |
| Comments |
| Comment by Lawrin Novitsky [ 2017-02-28 ] |
|
Thank you for your report! |
| Comment by Lawrin Novitsky [ 2017-03-03 ] |
|
Thank you for you detailed description. Would it be possible to also provide ODBC trace for that function execution? |
| Comment by Kurt Pfleger [ 2017-03-03 ] |
|
It does not depend, whether I set a charset or not. |
| Comment by Lawrin Novitsky [ 2017-03-03 ] |
|
Thanks once again - that helps. Would be possible also to see definition of the table `adressen`(SELECT * Doesn't it have 'binary' or 'collate utf8_bin' for varchar fields/table? The thing is, that DAO request all fields as SQL_C_BINARY, and it does so because SQLDescribeCol returned SQL_VARBINARY for seemingly all varchar fields. |
| Comment by Kurt Pfleger [ 2017-03-04 ] |
|
Thank you for your analysis. |
| Comment by Lawrin Novitsky [ 2017-03-04 ] |
|
So, they were utf8_bin? And you've altered the table and removed utf8_bin? jpg is "before" and pdf is "after"? Did that help? If did not, please provide "show create table adressen" result, so I could test what is wrong with the table. |
| Comment by Kurt Pfleger [ 2017-03-04 ] |
|
I haven´t altered the tables. Here the create statement: CREATE TABLE `adressen` ( |
| Comment by Lawrin Novitsky [ 2017-03-04 ] |
|
I am not sure there is a bug here. Server reports binary flag for fields, thus connector report to dao that fields are binary, dao fetches values as binary. Does that table have utf8_bin collation intentionally? To change to other collation would be one work-around for your problem. Other work-around to view those fields correctly, probably, would be to use convert/cast functions for those fields. |
| Comment by Lawrin Novitsky [ 2017-03-06 ] |
|
The fix has been pushed (to 2.0 branch) as rev. b0e0d7c2a489dd4436256a7f8bb644f6641fa8ad |
| Comment by Lawrin Novitsky [ 2017-03-06 ] |
|
I've decided that is a bug |