I communicate with MySQL server version 5.0.45 via MySQL Query Browser 1.2.14
Have column of type binary(6).
CREATE TABLE `test` (
`tid` int(10) unsigned NOT NULL auto_increment,
`h` binary(6) NOT NULL,
PRIMARY KEY (`tid`),
KEY `idx1` (`h`)
) ENGINE=MyISAM;
After query
INSERT INTO test(h) VALUES(X'AABBCCDDEEFF');
I see in the h field of added row corrupted value like
D0 84 C2 BB D0 9C
Seems that mysql treated binary value as a string and stored it according to some charset. But then why does it ignore binary column type and X'...' notation of value to insert? Am I doing wrong or MySQL is?