alecpl
2008-10-20 1ad39efbf4047285dd84762eb9dc55ebcd00b0a2
#1485504: fix _skipDelimitedStrings()


1 files modified
10 ■■■■■ changed files
program/lib/MDB2.php 10 ●●●●● patch | view | raw | blame | history
program/lib/MDB2.php
@@ -2915,9 +2915,7 @@
        $colon = ':';
        $positions = array();
        $position = 0;
        $ignores = $this->string_quoting;
        $ignores[] = $this->identifier_quoting;
        $ignores[] = $this->sql_comments;
        while ($position < strlen($query)) {
            $q_position = strpos($query, $question, $position);
            $c_position = strpos($query, $colon, $position);
@@ -3008,9 +3006,9 @@
     */
    function _skipDelimitedStrings($query, $position, $p_position)
    {
        $ignores = $this->string_quoting;
        $ignores[] = $this->identifier_quoting;
        $ignores[] = $this->sql_comments;
    $ignores[] = $this->string_quoting;
    $ignores[] = $this->identifier_quoting;
        $ignores = array_merge($ignores, $this->sql_comments);
        
        foreach ($ignores as $ignore) {
            if (!empty($ignore['start'])) {