src/DB/Drivers/PDOSqlDriver.php
function getSQL($only_sql = false)
    {
        $this->sql = &$this->querySQL[$this->qid];
        if ($only_sql) {
            return $this->sql;
        }

        $params = $this->queryParams[$this->qid];
        return array('sql' => $this->sql, 'params' => $params);
    }
function getSQL($only_sql = false)
    {
        $this->sql = &$this->querySQL[$this->qid];
        if ($only_sql) {
            return $this->sql;
        }

        $params = $this->queryParams[$this->qid];
        return array('sql' => $this->sql, 'params' => $params);
    }
返回链式查询当前生成的prepare语句

@param bool $only_sql
@return mixed