also recognize lower case insert

This commit is contained in:
Tyron Madlener 2011-07-09 22:25:33 +03:00
parent b0e977c835
commit 49360696ef

View File

@ -208,9 +208,9 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
while ($row = PMA_DBI_fetch_assoc($result)) {
preg_match('/^(\w+)\s/',$row['argument'],$match);
$type = $match[1];
$type = strtolower($match[1]);
$return['sum'][$type]++;
if($type=='INSERT') {
if($type=='insert') {
if(isset($_REQUEST['groupInserts']) && $_REQUEST['groupInserts'] && preg_match('/^INSERT INTO (`|\'|"|)([^\s\\1]+)\\1/i',$row['argument'],$matches)) {
$insertTables[$matches[2]]++;
if ($insertTables[$matches[2]] > 1) {