Hi again,
The segfault seems to occur only if the database name is not provided.
If I use :
mysqltest -p Hardwarefr < truncate_multi.test
There is no more segfault.
Regards,
Jocelyn
----- Original Message -----
From: "Jocelyn Fournier" <joc@stripped>
To: "Internals@stripped" <internals@stripped>
Sent: Tuesday, May 21, 2002 1:30 PM
Subject: Bug with mysqltest (latest mysql 4.0.2 source) ?
> Hi,
>
> I tried to use mysqltest but it segfaults when I try to execute the
> following file :
>
> connect (first,localhost,root,,);
> connect (second,localhost,root,,);
>
> connection first;
> CREATE TABLE `forumconthardwarefrcachet1` (
> `titre` char(80) NOT NULL default '',
> `numeropost` mediumint(8) unsigned NOT NULL default '0',
> `ouvert` tinyint(1) unsigned NOT NULL default '1',
> `date` datetime NOT NULL default '0000-00-00 00:00:00',
> `auteur` char(35) NOT NULL default '',
> `icone` tinyint(2) unsigned NOT NULL default '0',
> `nbrep` mediumint(8) unsigned NOT NULL default '0',
> `maxnumrep` int(10) unsigned NOT NULL default '0',
> `vue` mediumint(8) unsigned NOT NULL default '0',
> `lastauteur` char(35) NOT NULL default '',
> `sondage` tinyint(1) unsigned NOT NULL default '0',
> `next` int(10) NOT NULL default '0',
> `prev` int(10) NOT NULL default '0',
> `subcat` tinyint(4) unsigned NOT NULL default '0',
> PRIMARY KEY (`numeropost`),
> KEY `date` (`date`),
> KEY `maxnumrep` (`maxnumrep`),
> KEY `sondage` (`sondage`),
> KEY `auteur` (`auteur`),
> KEY `subcat` (`subcat`)
> ) TYPE=HEAP;
> --sleep 2
> truncate table forumconthardwarefrcachet1;
> connection second;
> --sleep 2
> truncate table forumconthardwarefrcachet1;
> connection first;
> reap;
> connection second;
> reap;
> drop table forumconthardwarefrcachet1;
>
> I don't know if I use mysqltest the right way, am I doing something wrong
?
>
> [root@forum] /home/mysql-4.0/mysql-test/t> mysqltest -p <
> truncate_multi.test
> Enter password:
> Segmentation fault
>
> Regards,
> Jocelyn Fournier
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
> http://www.mysql.com/manual.php (the manual)
> http://lists.mysql.com/ (the list archive)
>
> To request this thread, e-mail internals-thread3639@stripped
> To unsubscribe, e-mail <internals-unsubscribe@stripped>
>
>
>
>