search includes views, causes hang

Bug #708039 reported by Scott M. Sanders
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Search & Replace Tool
New
Undecided
Unassigned

Bug Description

Searching includes views (v_), which for me causes it to hang indefinitely.

I changed the do around line 53 to the following to exclude them; now it works for me:

    if(!stristr($tables_r['Tables_in_'.strtolower($database)], 'v_')) {
     $tables[] = $tables_r['Tables_in_'.strtolower($database)];
    }

Ideally the sql query would initially exclude them, but adding a NOT LIKE to it threw a MySQL error.

My server OS is CentOS 5.5, PHP 5.2.10, and MySQL 5.0.84.

Revision history for this message
Scott M. Sanders (scottmsanders) wrote :

Sorry, this is better:

if(substr($tables_r['Tables_in_'.strtolower($database)], 0, 1) != "v_") {
  $tables[] = $tables_r['Tables_in_'.strtolower($database)];
}

Revision history for this message
Scott M. Sanders (scottmsanders) wrote :

Rather "0, 2".

Revision history for this message
Eric Amundson (sewmyheadon) wrote : Re: [Bug 708039] Re: search includes views, causes hang

Thanks for the reports, Scott. We'll take a look at it and let you know
if we have any questions.

On 1/26/11 7:20 AM, Scott M Sanders wrote:
> Rather "0, 2".
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.