項目組的同學進來在使用mysql的時候發現了一個問題,具體內容如下:
MYSQL 版本 : Server version: 5.1.48-log Source distribution

咨詢了DBA,我們發現在mysql進行值比較的時候
int:使用decimal類型比較(支持浮點數的比較)
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() |