MYSQL字段int/bigint類型查詢返回的結(jié)果不同(bug)

          項目組的同學(xué)進來在使用mysql的時候發(fā)現(xiàn)了一個問題,具體內(nèi)容如下:
          MYSQL 版本 : Server version: 5.1.48-log Source distribution


          咨詢了DBA,我們發(fā)現(xiàn)在mysql進行值比較的時候

          int:使用decimal類型比較(支持浮點數(shù)的比較)

          Arg_comparator::compare_decimal

          Arg_comparator::compare_decimal (this=0x121cc2b8) at item_cmpfunc.cc:1378

          1378    int Arg_comparator::compare_decimal()

           

          bigint:使用int類型比較

          Arg_comparator::compare_int_signed

          Arg_comparator::compare_int_signed (this=0x121cc2b8) at item_cmpfunc.cc:1457

          1457  int Arg_comparator::compare_int_signed()

          posted on 2011-11-30 09:49 himalayas 閱讀(3010) 評論(0)  編輯  收藏 所屬分類: database

          <2011年11月>
          303112345
          6789101112
          13141516171819
          20212223242526
          27282930123
          45678910

          導(dǎo)航

          統(tǒng)計

          常用鏈接

          留言簿

          隨筆分類(15)

          隨筆檔案(16)

          最新隨筆

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 金阳县| 麻江县| 湘潭县| 内黄县| 故城县| 上林县| 溆浦县| 措美县| 盐池县| 通化市| 福建省| 莱阳市| 镇平县| 全州县| 巴东县| 吴川市| 称多县| 锦州市| 郯城县| 竹溪县| 抚顺市| 临汾市| 寻甸| 兴业县| 万载县| 天津市| 禄丰县| 瑞昌市| 寻甸| 德安县| 甘孜县| 武安市| 青阳县| 富民县| 花莲市| 卓资县| 诸城市| 泸州市| 沐川县| 双牌县| 宜昌市|