以前发现的一个MYSQL的BUG
来源:互联网 发布:域名备案需要网站吗 编辑:程序博客网 时间:2024/05/16 15:38
该BUG经mysql确认后在Connector 5.1.4版本中修正.
[9 Apr 2008 4:52] Kuang Yinong
[9 Apr 2008 5:00] Kuang Yinong
mysql version is: 5.0.51a-community-ntos: windows 2003 enterprise edition
[9 Apr 2008 5:01] Kuang Yinong
all my data
Attachment: ddd.sql (text/plain), 17.98 KiB.
[9 Apr 2008 5:38] Jess Balint
Verified as described. Result received is 8000000.00.
[9 Apr 2008 6:50] Jess Balint
If the decimal point was on the beginning edge of one of the segments, it would beskipped.Index: driver/utility.c===================================================================--- driver/utility.c (revision 1088)+++ driver/utility.c (working copy)@@ -2371,7 +2371,7 @@ if we have the decimal point, ignore it by setting it to the last char (will be ignored by strtoul) */- if (decpt && decpt > numstr + i && decpt < numstr + i + usedig)+ if (decpt && decpt >= numstr + i && decpt < numstr + i + usedig) { usedig = (int) (decpt - (numstr + i) + 1); sqlnum->scale= len - (i + usedig);Index: test/my_types.c===================================================================--- test/my_types.c (revision 1088)+++ test/my_types.c (working copy)@@ -879,6 +879,9 @@ is(sqlnum_test_from_str(hstmt, num3, 6, -1, 0, NULL, 10123, 0) == OK); is(sqlnum_test_from_str(hstmt, num3, 5, -1, 0, NULL, 10123, 0) == OK);+ /* Bug#35920 */+ is(sqlnum_test_from_str(hstmt, "8000.00", 30, 2, 1, NULL, 800000, 0) == OK);+ is(sqlnum_test_from_str(hstmt, "1234567.00", 30, 2, 1, NULL, 123456700, 0) == OK); /* some larger numbers */ {SQLCHAR expdata[SQL_MAX_NUMERIC_LEN]= {0xD5, 0x50, 0x94, 0x49,0,0,0,0,0,0,0,0,0,0,0,0};
[9 Apr 2008 15:29] Kuang Yinong
other field Estimated_Clicks mediumint(9) NOT NULL,Estimated_Conversions mediumint(9) NOT NULL,also will have the problem sometimes, but not always.also change it to double will ok.
[15 Apr 2008 0:02] Lawrin Novitsky
approved
[15 Apr 2008 7:32] Jess Balint
Fix committed in rev 1105, will be released in 5.1.4.
[8 Jul 2008 11:30] Tony Bedford
An entry has been added to the 5.1.4 Changelog:Wrong result obtained when using sum() on a decimal(8,2) field type.
- 以前发现的一个MYSQL的BUG
- 今日发现mysql的一个bug
- 发现一个以前不会发现的虫子
- 发现CSDN的一个Bug
- 发现一个jet2的bug
- 发现hotmail的一个bug
- 发现Chrome的一个bug
- 发现一个csdn的bug
- 发现CSDN的一个Bug
- 发现csdn的一个bug
- 发现淘宝的一个bug
- 发现一个gcc的“BUG”?
- 发现一个gccxml的bug!
- 发现CSDN的一个BUG
- 发现eval的一个BUG
- 发现这个Blog的一个Bug
- 再发:发现一个 Delphi6 VCL 的 BUG!
- 最近发现VB.net2003的一个bug
- iPhone的MobileTerminal使用经验
- 我学炒外汇 第一篇外汇的概念
- SQLite数据库扫盲
- My Ocean
- MySQL中LIMIT的用法详解
- 以前发现的一个MYSQL的BUG
- Linux基本网络操作命令
- 【毕业留念】
- 在B/S开发中处理异常
- 系统架构全生命期的概念(System Architecture Lifecycle)
- Arcgis server 9.3 无法登录ArcGIS Manager 提示Incorrect Login Information
- linux多种安装包格式的安装方法
- 如何编出健壮的代码,java编程30条规则(一)
- C#利用委托实现窗体间的值传递