我想知道这是一个错误还是我在这里做错了什么?
mysql> select @@max_allowed_packet
-> ;
+----------------------+
| @@max_allowed_packet |
+----------------------+
| 1024 |
+----------------------+
1 row in set (0.00 sec)
mysql> insert into Lookups values ('sasdfsadf12345654545=86672562768234jdfhasjkdfhaskldfhsadf','asdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdfhksjdfhkalsdfasdfasdfhjasdfhjkasdfhjkahsdfasdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdasdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdfhksjdfhkalsdfasdfasdfhjasdfhjkasdfhjkahsdfasdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdfhksjdfhkalsdfasdfasdfhjasdfhjkasdfhjkahsdfasdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdfhksjdfhkalsdfasdfasdfhjasdfhjkasdfhjkahsdfasdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdfhksjdfhkalsdfasdfasdfhjasdfhjkasdfhjkahsdfasdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdfhksjdfhkalsdfasdfasdfhjasdfhjkasdfhjkahsdfasdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdfhksjdfhkalsdfasdfasdfhjasdfhjkasdfhjkahsdfasdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdfhksjdfhkalsdfasdfasdfhjasdfhjkasdfhjkahsdfasdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdfhksjdfhkalsdfasdfasdfhjasdfhjkasdfhjkahsdfasdfhasjkfhaskdfjaksdfhasjkdfhaksldfjhskajdfhaskdfhksjdfhkalsdfasdfasdfhjasdfhjkasdfhjkahsdf');
Query OK, 1 row affected (0.00 sec)
mysql> show create table Lookups;
+---------+---------------------------------------------------------------------------------------------+
| Table | Create Table |
+---------+---------------------------------------------------------------------------------------------+
| Lookups | CREATE TABLE `Lookups` (
`name` text,
`val` text
) ENGINE=MyISAM DEFAULT CHARSET=latin1 |
+---------+---------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
mysql> select version();
+-----------+
| version() |
+-----------+
| 5.0.77 |
+-----------+
insert 语句的长度为 1055 个字符,应该超过 max_allowed_packet 变量,但它不会返回任何错误