Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

MySQL bug ?: msg#00003

db.mysql.bugs

Subject: MySQL bug ?

Dear Sir/Madam,
Attached please find two files names 'test.sql' and 'mysql.log'.
 
SQL server version:      4.1.17
Character Set:           gbk
 
Table structure:
Field      Type         Collation
_rec       int(10) unsigned
_timestamp timestamp
PARENT     varchar(8)   gbk_chinese_ci
TYPE       char(1)      gbk_chinese_ci
CHILD      varchar(8)   gbk_chinese_ci
QTY        double
ECNNO      varchar(5)   gbk_chinese_ci
ALTPART    char(1)      gbk_chinese_ci
EFF_DTE    date
 
The problem is all single bytes characters are treated as double
bytes characters when use "INSERT INTO" command.
INSERT INTO bi VALUES (NULL,NULL,'41-005422SJL-01','P','01-0010600C-00 ',1.0000,'          ',' ','20040326');
INSERT INTO bi VALUES (NULL,NULL,'一二三四五六七八','P','01-0214200M-08 ',1.0000,'          ',' ','20040326');
INSERT INTO bi VALUES (NULL,NULL,'41-0三四五六七八','P','01-0214200M-08 ',1.0000,'          ',' ','20040326');
The results:
_rec _timestamp          PARENT          TYPE      CHILD      QTY ECNNO ALTPART EFF_DTE
1    2004-11-11 09:00:26 41-00542         P        01-00106    1                2004-03-26
2    2004-11-11 09:00:26 一二三四五六七八  P        01-02142    1                2004-03-26
3    2004-11-11 09:00:26 41-0三四五六     P        01-02142     1                2004-03-26
Is it a bug of MySQL or I just make some mistake?
 
Best Regards,
X.L Yeung
 
 
--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=gcdmb-bugs@xxxxxxxxxxx
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
ide.eclipse.wtp...    bug-tracking.ro...    xfree86.cvs/200...    lisp.wxcl.devel...    file-systems.ar...    kde.devel.kwrit...    jakarta.jetspee...    qnx.openqnx.dev...    drivers.openib/...    ports.xbox.deve...    gis.gdal.devel/...    netbsd.ports.ma...    ubuntu.marketin...    systemtap/2005-...    web.omniweb/200...    mail.qmail.ldap...    hardware.soekri...    os.netbsd.devel...    audio.madman.ge...    tv.freeguide-tv...    cluster.openmos...    education.ezpro...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation