Bug #108182 --skip-binary-as-hex option does not change `show full fields`, `desc` output
| Submitted: | 18 Aug 2022 3:16 | Modified: | 18 Aug 2022 12:36 |
|---|---|---|---|
| Reporter: | Yasuo Honda | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
| Version: | 8.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[18 Aug 2022 3:16]
Yasuo Honda
[18 Aug 2022 12:36]
MySQL Verification Team
Hi Mr. Honda, Thank you for your bug report. We have managed to repeat the behaviour that you reported with 8.0.30. And, indeed, the hex representation that is presented is a string "livebeef". Verified as reported.
[29 Aug 2022 7:57]
Daniƫl van Eeden
By running 'mysql' under GDB and setting a breakpoint on 'print_as_hex' you can see that it doesn't hit the breakpoint for "show full fields from t", but does so for "select * from t" unless the option is disabled.
With "--column-type-info" this is shown for the "show full fields from t" output:
------------------------------
Field 6: `Default`
Catalog: `def`
Database: ``
Table: `COLUMNS`
Org_table: `columns`
Type: BLOB
Collation: utf8mb4_0900_ai_ci (255)
Length: 262140
Max_length: 18
Decimals: 0
------------------------------
Running this from Python gives this result:
------------------------------
In [8]: cur.execute('show full fields from t');
In [9]: for r in cur:
...: print(r)
...:
('foo', b'varbinary(1024)', None, 'YES', '', b'0x6C69766562656566', '', 'select,insert,update,references', b'')
------------------------------
So it is not the MySQL Client that does this, it is the server.
[29 Aug 2022 12:17]
MySQL Verification Team
Thank you, Mr. Honda, For further clarification.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.043 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.