Ignore index usages
Brought to you by:
legolas558
An application I'm working with assumes the support of indexes. Gladius doesn't support indexes, but there's no reason index maintenance can't just be ignored! :-)
I've done this by adding the following to the Query function in gladius.php (inserted at about line 1186):
case 'ALTER':
$result = true; // ignore table alterations
break;
And the following just before line 41 in gladius_drop.php:
if (preg_match('/\\s+index\\s+/iA', $sql, $m, PREG_OFFSET_CAPTURE, $this->offset)) {
return true; // ignore index drops
}
That allows index using code to work. It never needs to know that indexes aren't supported.