Bug #6624 #1030 - Got error -1 from storage engine

Submitted: 15 Nov 2004 8:01 Modified: 15 Nov 2004 10:59
Reporter: Corin Langosch Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: MyISAM storage engine Severity:S2 (Serious)
Version:4.1.7-standard Official MySQL-standard OS:Linux (debian linux 686)
Assigned to: CPU Architecture:Any

[15 Nov 2004 8:01] Corin Langosch
Description:
hi!

the query:
SELECT * 
FROM foren_threads
WHERE id
IN (
SELECT DISTINCT thread_id id
FROM foren_postings
WHERE MATCH (
posting
)
AGAINST (
'toll'
)
)
LIMIT 0 , 30 

produces the following error message:
#1030 - Got error -1 from storage engine 

both statements on their own work without any problems.

in the .err file, the following is written:
041115  8:49:01 [ERROR] Got error -1 when reading table './oc2004/foren_postings'

table structures:
CREATE TABLE `foren_postings` (
  `forum` text collate latin1_german1_ci NOT NULL,
  `thread_id` int(11) unsigned NOT NULL default '0',
  `posting_id` int(11) unsigned NOT NULL auto_increment,
  `user_id` int(11) unsigned NOT NULL default '0',
  `posting` text collate latin1_german1_ci NOT NULL,
  `time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`posting_id`),
  KEY `thread_id` (`thread_id`),
  FULLTEXT KEY `posting` (`posting`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci COMMENT='Tabelle zum Forum rumtesten' AUTO_INCREMENT=14 ;
        
CREATE TABLE `foren_threads` (
  `forum` text collate latin1_german1_ci NOT NULL,
  `id` int(10) unsigned NOT NULL auto_increment,
  `thema` text collate latin1_german1_ci NOT NULL,
  `user_id` int(10) unsigned NOT NULL default '0',
  `postings` int(10) unsigned NOT NULL default '0',
  `last_post_time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  `last_poster_id` int(10) unsigned NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_german1_ci COMMENT='Threads des Testforums' AUTO_INCREMENT=6 ;
        
regards,
corin

How to repeat:
create tables and insert some random records. execute the query.

Suggested fix:
none
[15 Nov 2004 10:59] MySQL Verification Team
Duplicate for #6523

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.