Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37908 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88743 invoked from network); 26 May 2008 20:53:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2008 20:53:36 -0000 Authentication-Results: pb1.pair.com smtp.mail=rasmus@lerdorf.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=rasmus@lerdorf.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lerdorf.com from 204.11.219.139 cause and error) X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 mail.lerdorf.com Received: from [204.11.219.139] ([204.11.219.139:45752] helo=mail.lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/10-18531-D4D1B384 for ; Mon, 26 May 2008 16:27:58 -0400 Received: from [192.168.200.148] (c-24-6-219-206.hsd1.ca.comcast.net [24.6.219.206]) (authenticated bits=0) by mail.lerdorf.com (8.14.3/8.14.3/Debian-4) with ESMTP id m4QKRo9t004430; Mon, 26 May 2008 13:27:51 -0700 Message-ID: <483B1D46.2030709@lerdorf.com> Date: Mon, 26 May 2008 13:27:50 -0700 User-Agent: Thunderbird 2.0.0.4 (Macintosh/20070604) MIME-Version: 1.0 To: jani.taskinen@iki.fi CC: internals Mailing List References: <483B16C1.7050907@sci.fi> <483B178E.9010106@lerdorf.com> <483B18A4.7010401@sci.fi> <483B19DD.4060800@lerdorf.com> <483B1C19.6000205@sci.fi> In-Reply-To: <483B1C19.6000205@sci.fi> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (mail.lerdorf.com [204.11.219.139]); Mon, 26 May 2008 13:27:51 -0700 (PDT) Subject: Re: [PHP-DEV] Can not delete comments in bug reports From: rasmus@lerdorf.com (Rasmus Lerdorf) Jani Taskinen wrote: > Rasmus Lerdorf kirjoitti: >> Jani Taskinen wrote: >>> Rasmus Lerdorf kirjoitti: >>>> Jani Taskinen wrote: >>>>> So who broke the deleting of comments in bug reports? >>>>> It used to work fine, now nothing happens.. >>>> >>>> Is that your way of filing a bug report? >>> >>> :) >>> >>>> I upgraded from MySQL 4.1.x to 5.1.x because 4.1 was very unstable >>>> for some reason. It seems more stable now, but perhaps the delete >>>> query is doing something weird that 5.1 doesn't like. >>> >>> Actually I just noticed that this only happens with some comments, >>> not all..maybe that table needs some loving care of "REPAIR TABLE"..? >>> (or even all the tables?) >> >> I upgraded and repaired all the tables, but I'll run it again. It is >> reporting back: >> >> | phpbugdb.bugdb_comments | repair | status | OK | >> >> The code is: >> >> $query = "DELETE FROM bugdb_comments WHERE bug=$id AND >> id=$com_id"; >> $res = @mysql_query($query); >> >> I've removed the @ there. Could you try again on one that didn't work >> before and let me know what error you see? > > Got another one: > > "Some sort of database error has happened. Maybe this will be > illuminating: Incorrect key file for table './phpbugdb/bugdb.MYI'; try > to repair it This was the last query attempted: UPDATE bugdb SET > sdesc='wddx_add_vars() does not convert variable names to UTF8', > status='Open', bug_type='WDDX related', assign='', php_version='5.2.6', > php_os='Windows', ts2=NOW() WHERE id=45037" > > While updating a report..the other query (deleting comment) that didn't > work, worked now. :) Ok, I have gone through and repaired all the tables again now. I actually just did a myisamchk -r *.MYI before, not a repair table. -Rasmus