root@mysqldb 22:12: [xucl]> show create table t1\G*************************** 1. row ***************************Table: t1Create Table: CREATE TABLE `t1` (`id` varchar(255) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=utf81 row in set (0.00 sec)root@mysqldb 22:19: [xucl]> select * from t1;+--------------------+| id |+--------------------+| 204027026112927605 || 204027026112927603 || 2040270261129276 || 2040270261129275 || 100 || 101 |+--------------------+6 rows in set (0.00 sec)
root@mysqldb 22:19: [xucl]> select * from t1 where id=204027026112927603;+--------------------+| id |+--------------------+| 204027026112927605 || 204027026112927603 |+--------------------+2 rows in set (0.00 sec)
int Arg_comparator::compare_real(){/* Fix yet another manifestation of Bug#2338. 'Volatile' will instruct gcc to flush double values out of 80-bit Intel FPU registers before performing the comparison. */volatile double val1, val2;val1= (*a)->val_real();if (!(*a)->null_value){val2= (*b)->val_real();if (!(*b)->null_value){if (set_null)owner->null_value= 0;if (val1 < val2) return -1;if (val1 == val2) return 0;return 1;}}if (set_null)owner->null_value= 1;return -1;}
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29797838/viewspace-2774789/ ,如需转载,请注明出处,否则将追究法律责任。