#3 Ignore index usages

open
nobody
None
5
2009-05-30
2009-05-30
No

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.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks