function _sqlite_fixes(&$query) { $query = strings::replace(array('LOW_PRIORITY'), '', $query); // DELETE..LIMIT unsupported if (preg_match('@^DELETE@', $query)) { $query = preg_replace('@LIMIT \\d+(,\\s*\\d+)?@', '', $query); } }