revert last commit -- this is a bad way to do it, and I'll have to come up with something else

to let people use strings like %i in their SQL and bypass the parser
This commit is contained in:
Sergey Tsalkov
2011-04-28 18:14:59 -04:00
parent 12604d7854
commit ad4889da09
2 changed files with 0 additions and 8 deletions

View File

@@ -270,13 +270,10 @@ class DB
while (($pos = strpos($sql, $type, $lastPos)) !== false) {
$lastPos = $pos + 1;
if (isset($posList[$pos]) && strlen($posList[$pos]) > strlen($type)) continue;
if (substr($sql, $pos - 1, 1) == '%') continue;
$posList[$pos] = $type;
}
}
$sql = str_replace('%%', '%', $sql);
ksort($posList);
foreach ($posList as $pos => $type) {