Hi,
with a mysql 8.0 database, a table was originally created with a column
documentId BINARY(16) a long time ago.
When I look at the table column in Database Explorer, selecting the table in the "Object" column, then choose columns on the right tabbed pane (with indexes, references and so on), I see only BINARY, not BINARY(16). For VARCHAR columns, the size is displayed. But not for BINARY.
I wanted to create an identical table (except for the name), therefore I right-clicked on the table namein the Object column, then chose "Create DDL Script".
The CREATE TABLE contains
documentId BINARY,
for that column. Looked ok to me, the same as I got displayed.
When I executed the CREATE TABLE after changing the table name, the column was displayed as
documentId BINARY
Looked good to me, the same as I saw for the old table.
I then tried copying values from the original table to the new one, but that fails ... (Error 1406 Data too long for column).
Some tests showed: the column in the new table is BINARY(1), not BINARY(16), no wonder I can't copy the 16 byte values ...
Please consider displaying the size for binary, and also use the size for the CREATE TABLE statement.