src/sb/PDO/Logger.php
public function prepare($sql, $options = null)
    {

        $md5 = md5($sql);

        if (isset($this->prepared_sql[$md5])) {
            return $this->prepared_sql[$md5];
        }

        //$this->writeToLog("Preparing: ".$sql);
        $stmt = parent::prepare($sql);
        $this->prepared_sql[$md5] = $stmt;
        return $stmt;
    }
public function prepare($sql, $options = null)
    {

        $md5 = md5($sql);

        if (isset($this->prepared_sql[$md5])) {
            return $this->prepared_sql[$md5];
        }

        //$this->writeToLog("Preparing: ".$sql);
        $stmt = parent::prepare($sql);
        $this->prepared_sql[$md5] = $stmt;
        return $stmt;
    }
public function prepare ( $ sql , $ options = null ) { $ md5 = md5 ( $ sql ) ; if ( isset ( $ this -> prepared_sql [ $ md5 ] ) ) { return $ this -> prepared_sql [ $ md5 ] ; } //$this->writeToLog("Preparing: ".$sql); $ stmt = parent :: prepare ( $ sql ) ; $ this -> prepared_sql [ $ md5 ] = $ stmt ; return $ stmt ; }
Used to prepare sql statements for value binding

@param string $sql
@return PDO_Statement A PDO_statment instance
Used to prepare sql statements for value binding