DATE_FORMAT function with ucs2 collation
Posted by: Jean-Pierre Morfin
Date: November 07, 2006 10:22AM

Hello,

I encounter some trouble with a full usc2_bin MyISAM database (MySQL 5.0.24).

CREATE TABLE `thetable` (
`thekey` varchar(16) collate ucs2_bin NOT NULL default '',
`thecolumn` varchar(8) collate ucs2_bin NOT NULL default '00000000',
PRIMARY KEY (`thekey`)
) ENGINE=MyISAM DEFAULT CHARSET=ucs2 COLLATE=ucs2_bin;


When I execute a request like this one :

INSERT INTO `thetable` ( `thekey` , `thecolumn` )
VALUES ('1', DATE_FORMAT(NOW(), '%Y%m%d'))

I obtain a very strange result in 'thecolumn' (exotics characters) such ㈰〶ㄱ〷

Do you know why ?

Many thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
DATE_FORMAT function with ucs2 collation
3261
November 07, 2006 10:22AM


Sorry, you can't reply to this topic. It has been closed.

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.