NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
corrupted database? (Score:2)
mysql> show create table mail\G
*************************** 1. row ***************************
Table: mail
Create Table: CREATE TABLE `mail` (
`mail_id` int(11) unsigned NOT NULL auto_increment,
`user` varchar(64) default NULL,
`mail_type_id` int(10) unsigned NOT NULL,
`domain_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`mail_id`),
KEY `mail_type_id` (`mail_type_id`),
KEY `domain_id` (`domain_id`,`user`)
) ENGINE=InnoDB AUTO_INCREMENT=25009 DEFAULT CHARSET=latin1
1 row in set (0.00 sec)
mysql> select * from mail;
+---------+------+--------------+-----------+
| mail_id | user | mail_type_id | domain_id |
+---------+------+--------------+-----------+
| 25006 | NULL | 6 | 28 |
| 25008 | NULL | 6 | 3728 |
+---------+------+--------------+-----------+
2 rows in set (0.00 sec)
mysql> select * from mail where mail_type_id = 6 and user = '';
Empty set (0.00 sec)
ilya@denmark:~$ mysql --version
mysql Ver 14.12 Distrib 5.0.45, for pc-linux-gnu (i486) using readline 5.2
Could it be you have a corrupted database? Have you tried 'REPAIR TABLE mail'?
Ilya Martynov (http://martynov.org/ [martynov.org])
Reply to This
Re: (Score:1)
I can reproduce by the following:
mysql> CREATE TABLE `foo` (
-> `mail_id` int(11) unsigned NOT NULL auto_increment,
`user` varchar(64) default NULL,
-> `user` varchar(64) default NULL,
-> `mail_type_id` int(10) unsigned NOT NULL,
-> `domain_id`
Oracle like feature? (Score:2)
Ilya Martynov (http://martynov.org/ [martynov.org])
Re: (Score:1)
Re: (Score:2)
Ilya Martynov (http://martynov.org/ [martynov.org])