Description:
I can think of no rationale for the following:
mysql> select version();
+------------+
| version() |
+------------+
| 4.0.20a-nt |
+------------+
1 row in set (0.00 sec)
mysql> select count(*) from mp_analysis where days_limit = 4 and indicators = 61;
+----------+
| count(*) |
+----------+
| 0 |
+----------+
1 row in set (0.00 sec)
mysql> insert into mp_analysis (days_limit, indicators, percent) values(4, 61, 61);
ERROR 1062: Duplicate entry '4-61' for key 1
mysql> select count(*) from mp_analysis where days_limit = 4 and indicators = 61;
+----------+
| count(*) |
+----------+
| 1 |
+----------+
1 row in set (0.00 sec)
mysql> show create table mp_analysis;
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| mp_analysis | CREATE TABLE `mp_analysis` (
`days_limit` int(11) NOT NULL default '0',
`indicators` int(11) NOT NULL default '0',
`percent` int(11) default NULL,
PRIMARY KEY (`days_limit`,`indicators`)
) TYPE=MyISAM |
+-------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
mysql> select * from mp_analysis;
ERROR 1030: Got error 127 from table handler
What's going on here?...
How to repeat:
Pretty much just create the table and start inserting a bunch of stuff seemed to work for me...
You could parse out the exact contents of the table from this output:
3, 3
select count(*) from mp_analysis where days_limit = 3 and indicators = 3
count is 1 (string)
Already did 3, 3
raw_count is 0
3, 4
select count(*) from mp_analysis where days_limit = 3 and indicators = 4
count is 1 (string)
Already did 3, 4
raw_count is 0
3, 5
select count(*) from mp_analysis where days_limit = 3 and indicators = 5
count is 1 (string)
Already did 3, 5
raw_count is 0
3, 6
select count(*) from mp_analysis where days_limit = 3 and indicators = 6
count is 1 (string)
Already did 3, 6
raw_count is 0
3, 7
select count(*) from mp_analysis where days_limit = 3 and indicators = 7
count is 1 (string)
Already did 3, 7
raw_count is 0
3, 8
select count(*) from mp_analysis where days_limit = 3 and indicators = 8
count is 1 (string)
Already did 3, 8
raw_count is 0
3, 9
select count(*) from mp_analysis where days_limit = 3 and indicators = 9
count is 1 (string)
Already did 3, 9
raw_count is 0
3, 10
select count(*) from mp_analysis where days_limit = 3 and indicators = 10
count is 1 (string)
Already did 3, 10
raw_count is 0
3, 11
select count(*) from mp_analysis where days_limit = 3 and indicators = 11
count is 1 (string)
Already did 3, 11
raw_count is 0
3, 12
select count(*) from mp_analysis where days_limit = 3 and indicators = 12
count is 1 (string)
Already did 3, 12
raw_count is 0
3, 13
select count(*) from mp_analysis where days_limit = 3 and indicators = 13
count is 1 (string)
Already did 3, 13
raw_count is 0
3, 14
select count(*) from mp_analysis where days_limit = 3 and indicators = 14
count is 1 (string)
Already did 3, 14
raw_count is 0
3, 15
select count(*) from mp_analysis where days_limit = 3 and indicators = 15
count is 1 (string)
Already did 3, 15
raw_count is 0
3, 16
select count(*) from mp_analysis where days_limit = 3 and indicators = 16
count is 1 (string)
Already did 3, 16
raw_count is 0
3, 17
select count(*) from mp_analysis where days_limit = 3 and indicators = 17
count is 1 (string)
Already did 3, 17
raw_count is 0
3, 18
select count(*) from mp_analysis where days_limit = 3 and indicators = 18
count is 1 (string)
Already did 3, 18
raw_count is 0
3, 19
select count(*) from mp_analysis where days_limit = 3 and indicators = 19
count is 1 (string)
Already did 3, 19
raw_count is 0
3, 20
select count(*) from mp_analysis where days_limit = 3 and indicators = 20
count is 1 (string)
Already did 3, 20
raw_count is 0
3, 21
select count(*) from mp_analysis where days_limit = 3 and indicators = 21
count is 1 (string)
Already did 3, 21
raw_count is 0
3, 22
select count(*) from mp_analysis where days_limit = 3 and indicators = 22
count is 1 (string)
Already did 3, 22
raw_count is 0
3, 23
select count(*) from mp_analysis where days_limit = 3 and indicators = 23
count is 1 (string)
Already did 3, 23
raw_count is 0
3, 24
select count(*) from mp_analysis where days_limit = 3 and indicators = 24
count is 1 (string)
Already did 3, 24
raw_count is 0
3, 25
select count(*) from mp_analysis where days_limit = 3 and indicators = 25
count is 1 (string)
Already did 3, 25
raw_count is 0
3, 26
select count(*) from mp_analysis where days_limit = 3 and indicators = 26
count is 1 (string)
Already did 3, 26
raw_count is 0
3, 27
select count(*) from mp_analysis where days_limit = 3 and indicators = 27
count is 1 (string)
Already did 3, 27
raw_count is 0
3, 28
select count(*) from mp_analysis where days_limit = 3 and indicators = 28
count is 1 (string)
Already did 3, 28
raw_count is 0
3, 29
select count(*) from mp_analysis where days_limit = 3 and indicators = 29
count is 1 (string)
Already did 3, 29
raw_count is 0
3, 30
select count(*) from mp_analysis where days_limit = 3 and indicators = 30
count is 1 (string)
Already did 3, 30
raw_count is 0
3, 31
select count(*) from mp_analysis where days_limit = 3 and indicators = 31
count is 1 (string)
Already did 3, 31
raw_count is 0
3, 32
select count(*) from mp_analysis where days_limit = 3 and indicators = 32
count is 1 (string)
Already did 3, 32
raw_count is 0
3, 33
select count(*) from mp_analysis where days_limit = 3 and indicators = 33
count is 1 (string)
Already did 3, 33
raw_count is 0
3, 34
select count(*) from mp_analysis where days_limit = 3 and indicators = 34
count is 1 (string)
Already did 3, 34
raw_count is 0
3, 35
select count(*) from mp_analysis where days_limit = 3 and indicators = 35
count is 1 (string)
Already did 3, 35
raw_count is 0
3, 36
select count(*) from mp_analysis where days_limit = 3 and indicators = 36
count is 1 (string)
Already did 3, 36
raw_count is 0
3, 37
select count(*) from mp_analysis where days_limit = 3 and indicators = 37
count is 1 (string)
Already did 3, 37
raw_count is 0
3, 38
select count(*) from mp_analysis where days_limit = 3 and indicators = 38
count is 1 (string)
Already did 3, 38
raw_count is 0
3, 39
select count(*) from mp_analysis where days_limit = 3 and indicators = 39
count is 1 (string)
Already did 3, 39
raw_count is 0
3, 40
select count(*) from mp_analysis where days_limit = 3 and indicators = 40
count is 1 (string)
Already did 3, 40
raw_count is 0
3, 41
select count(*) from mp_analysis where days_limit = 3 and indicators = 41
count is 1 (string)
Already did 3, 41
raw_count is 0
3, 42
select count(*) from mp_analysis where days_limit = 3 and indicators = 42
count is 1 (string)
Already did 3, 42
raw_count is 0
3, 43
select count(*) from mp_analysis where days_limit = 3 and indicators = 43
count is 1 (string)
Already did 3, 43
raw_count is 0
3, 44
select count(*) from mp_analysis where days_limit = 3 and indicators = 44
count is 1 (string)
Already did 3, 44
raw_count is 0
3, 45
select count(*) from mp_analysis where days_limit = 3 and indicators = 45
count is 1 (string)
Already did 3, 45
raw_count is 0
3, 46
select count(*) from mp_analysis where days_limit = 3 and indicators = 46
count is 1 (string)
Already did 3, 46
raw_count is 0
3, 47
select count(*) from mp_analysis where days_limit = 3 and indicators = 47
count is 1 (string)
Already did 3, 47
raw_count is 0
3, 48
select count(*) from mp_analysis where days_limit = 3 and indicators = 48
count is 1 (string)
Already did 3, 48
raw_count is 0
3, 49
select count(*) from mp_analysis where days_limit = 3 and indicators = 49
count is 1 (string)
Already did 3, 49
raw_count is 0
3, 50
select count(*) from mp_analysis where days_limit = 3 and indicators = 50
count is 1 (string)
Already did 3, 50
raw_count is 0
3, 51
select count(*) from mp_analysis where days_limit = 3 and indicators = 51
count is 1 (string)
Already did 3, 51
raw_count is 0
3, 52
select count(*) from mp_analysis where days_limit = 3 and indicators = 52
count is 1 (string)
Already did 3, 52
raw_count is 0
3, 53
select count(*) from mp_analysis where days_limit = 3 and indicators = 53
count is 1 (string)
Already did 3, 53
raw_count is 0
3, 54
select count(*) from mp_analysis where days_limit = 3 and indicators = 54
count is 1 (string)
Already did 3, 54
raw_count is 0
3, 55
select count(*) from mp_analysis where days_limit = 3 and indicators = 55
count is 1 (string)
Already did 3, 55
raw_count is 0
3, 56
select count(*) from mp_analysis where days_limit = 3 and indicators = 56
count is 1 (string)
Already did 3, 56
raw_count is 0
3, 57
select count(*) from mp_analysis where days_limit = 3 and indicators = 57
count is 1 (string)
Already did 3, 57
raw_count is 0
3, 58
select count(*) from mp_analysis where days_limit = 3 and indicators = 58
count is 1 (string)
Already did 3, 58
raw_count is 0
3, 59
select count(*) from mp_analysis where days_limit = 3 and indicators = 59
count is 1 (string)
Already did 3, 59
raw_count is 0
3, 60
select count(*) from mp_analysis where days_limit = 3 and indicators = 60
count is 1 (string)
Already did 3, 60
raw_count is 0
3, 61
select count(*) from mp_analysis where days_limit = 3 and indicators = 61
count is 1 (string)
Already did 3, 61
raw_count is 0
3, 62
select count(*) from mp_analysis where days_limit = 3 and indicators = 62
count is 1 (string)
Already did 3, 62
raw_count is 0
3, 63
select count(*) from mp_analysis where days_limit = 3 and indicators = 63
count is 1 (string)
Already did 3, 63
raw_count is 0
4, 3
select count(*) from mp_analysis where days_limit = 4 and indicators = 3
count is 1 (string)
Already did 4, 3
raw_count is 0
4, 4
select count(*) from mp_analysis where days_limit = 4 and indicators = 4
count is 1 (string)
Already did 4, 4
raw_count is 0
4, 5
select count(*) from mp_analysis where days_limit = 4 and indicators = 5
count is 1 (string)
Already did 4, 5
raw_count is 0
4, 6
select count(*) from mp_analysis where days_limit = 4 and indicators = 6
count is 1 (string)
Already did 4, 6
raw_count is 0
4, 7
select count(*) from mp_analysis where days_limit = 4 and indicators = 7
count is 1 (string)
Already did 4, 7
raw_count is 0
4, 8
select count(*) from mp_analysis where days_limit = 4 and indicators = 8
count is 1 (string)
Already did 4, 8
raw_count is 0
4, 9
select count(*) from mp_analysis where days_limit = 4 and indicators = 9
count is 1 (string)
Already did 4, 9
raw_count is 0
4, 10
select count(*) from mp_analysis where days_limit = 4 and indicators = 10
count is 1 (string)
Already did 4, 10
raw_count is 0
4, 11
select count(*) from mp_analysis where days_limit = 4 and indicators = 11
count is 1 (string)
Already did 4, 11
raw_count is 0
4, 12
select count(*) from mp_analysis where days_limit = 4 and indicators = 12
count is 1 (string)
Already did 4, 12
raw_count is 0
4, 13
select count(*) from mp_analysis where days_limit = 4 and indicators = 13
count is 1 (string)
Already did 4, 13
raw_count is 0
4, 14
select count(*) from mp_analysis where days_limit = 4 and indicators = 14
count is 1 (string)
Already did 4, 14
raw_count is 0
4, 15
select count(*) from mp_analysis where days_limit = 4 and indicators = 15
count is 1 (string)
Already did 4, 15
raw_count is 0
4, 16
select count(*) from mp_analysis where days_limit = 4 and indicators = 16
count is 1 (string)
Already did 4, 16
raw_count is 0
4, 17
select count(*) from mp_analysis where days_limit = 4 and indicators = 17
count is 1 (string)
Already did 4, 17
raw_count is 0
4, 18
select count(*) from mp_analysis where days_limit = 4 and indicators = 18
count is 1 (string)
Already did 4, 18
raw_count is 0
4, 19
select count(*) from mp_analysis where days_limit = 4 and indicators = 19
count is 1 (string)
Already did 4, 19
raw_count is 0
4, 20
select count(*) from mp_analysis where days_limit = 4 and indicators = 20
count is 1 (string)
Already did 4, 20
raw_count is 0
4, 21
select count(*) from mp_analysis where days_limit = 4 and indicators = 21
count is 1 (string)
Already did 4, 21
raw_count is 0
4, 22
select count(*) from mp_analysis where days_limit = 4 and indicators = 22
count is 1 (string)
Already did 4, 22
raw_count is 0
4, 23
select count(*) from mp_analysis where days_limit = 4 and indicators = 23
count is 1 (string)
Already did 4, 23
raw_count is 0
4, 24
select count(*) from mp_analysis where days_limit = 4 and indicators = 24
count is 1 (string)
Already did 4, 24
raw_count is 0
4, 25
select count(*) from mp_analysis where days_limit = 4 and indicators = 25
count is 1 (string)
Already did 4, 25
raw_count is 0
4, 26
select count(*) from mp_analysis where days_limit = 4 and indicators = 26
count is 1 (string)
Already did 4, 26
raw_count is 0
4, 27
select count(*) from mp_analysis where days_limit = 4 and indicators = 27
count is 1 (string)
Already did 4, 27
raw_count is 0
4, 28
select count(*) from mp_analysis where days_limit = 4 and indicators = 28
count is 1 (string)
Already did 4, 28
raw_count is 0
4, 29
select count(*) from mp_analysis where days_limit = 4 and indicators = 29
count is 1 (string)
Already did 4, 29
raw_count is 0
4, 30
select count(*) from mp_analysis where days_limit = 4 and indicators = 30
count is 1 (string)
Already did 4, 30
raw_count is 0
4, 31
select count(*) from mp_analysis where days_limit = 4 and indicators = 31
count is 1 (string)
Already did 4, 31
raw_count is 0
4, 32
select count(*) from mp_analysis where days_limit = 4 and indicators = 32
count is 1 (string)
Already did 4, 32
raw_count is 0
4, 33
select count(*) from mp_analysis where days_limit = 4 and indicators = 33
count is 1 (string)
Already did 4, 33
raw_count is 0
4, 34
select count(*) from mp_analysis where days_limit = 4 and indicators = 34
count is 1 (string)
Already did 4, 34
raw_count is 0
4, 35
select count(*) from mp_analysis where days_limit = 4 and indicators = 35
count is 1 (string)
Already did 4, 35
raw_count is 0
4, 36
select count(*) from mp_analysis where days_limit = 4 and indicators = 36
count is 1 (string)
Already did 4, 36
raw_count is 0
4, 37
select count(*) from mp_analysis where days_limit = 4 and indicators = 37
count is 1 (string)
Already did 4, 37
raw_count is 0
4, 38
select count(*) from mp_analysis where days_limit = 4 and indicators = 38
count is 1 (string)
Already did 4, 38
raw_count is 0
4, 39
select count(*) from mp_analysis where days_limit = 4 and indicators = 39
count is 1 (string)
Already did 4, 39
raw_count is 0
4, 40
select count(*) from mp_analysis where days_limit = 4 and indicators = 40
count is 1 (string)
Already did 4, 40
raw_count is 0
4, 41
select count(*) from mp_analysis where days_limit = 4 and indicators = 41
count is 1 (string)
Already did 4, 41
raw_count is 0
4, 42
select count(*) from mp_analysis where days_limit = 4 and indicators = 42
count is 1 (string)
Already did 4, 42
raw_count is 0
4, 43
select count(*) from mp_analysis where days_limit = 4 and indicators = 43
count is 1 (string)
Already did 4, 43
raw_count is 0
4, 44
select count(*) from mp_analysis where days_limit = 4 and indicators = 44
count is 1 (string)
Already did 4, 44
raw_count is 0
4, 45
select count(*) from mp_analysis where days_limit = 4 and indicators = 45
count is 1 (string)
Already did 4, 45
raw_count is 0
4, 46
select count(*) from mp_analysis where days_limit = 4 and indicators = 46
count is 1 (string)
Already did 4, 46
raw_count is 0
4, 47
select count(*) from mp_analysis where days_limit = 4 and indicators = 47
count is 1 (string)
Already did 4, 47
raw_count is 0
4, 48
select count(*) from mp_analysis where days_limit = 4 and indicators = 48
count is 1 (string)
Already did 4, 48
raw_count is 0
4, 49
select count(*) from mp_analysis where days_limit = 4 and indicators = 49
count is 1 (string)
Already did 4, 49
raw_count is 0
4, 50
select count(*) from mp_analysis where days_limit = 4 and indicators = 50
count is 1 (string)
Already did 4, 50
raw_count is 0
4, 51
select count(*) from mp_analysis where days_limit = 4 and indicators = 51
count is 1 (string)
Already did 4, 51
raw_count is 0
4, 52
select count(*) from mp_analysis where days_limit = 4 and indicators = 52
count is 1 (string)
Already did 4, 52
raw_count is 0
4, 53
select count(*) from mp_analysis where days_limit = 4 and indicators = 53
count is 1 (string)
Already did 4, 53
raw_count is 0
4, 54
select count(*) from mp_analysis where days_limit = 4 and indicators = 54
count is 1 (string)
Already did 4, 54
raw_count is 0
4, 55
select count(*) from mp_analysis where days_limit = 4 and indicators = 55
count is 1 (string)
Already did 4, 55
raw_count is 0
4, 56
select count(*) from mp_analysis where days_limit = 4 and indicators = 56
count is 1 (string)
Already did 4, 56
raw_count is 0
4, 57
select count(*) from mp_analysis where days_limit = 4 and indicators = 57
count is 1 (string)
Already did 4, 57
raw_count is 0
4, 58
select count(*) from mp_analysis where days_limit = 4 and indicators = 58
count is 1 (string)
Already did 4, 58
raw_count is 0
4, 59
select count(*) from mp_analysis where days_limit = 4 and indicators = 59
count is 1 (string)
Already did 4, 59
raw_count is 0
4, 60
select count(*) from mp_analysis where days_limit = 4 and indicators = 60
count is 1 (string)
Already did 4, 60
raw_count is 0
4, 61
select count(*) from mp_analysis where days_limit = 4 and indicators = 61
count is 0 (string)
Doing 4, 61
insert into mp_analysis (days_limit, indicators, percent ) values(4, 61, 61)
Duplicate entry '4-61' for key 1 insert into mp_analysis (days_limit, indicators, percent ) values(4, 61, 61)