Phalcon\Db\Adapter\Pdo\Mysql

https://docs.phalcon.io/en/latest/api/Phalcon_Db_Adapter_Pdo_Mysql.html

describes following methods:

public getSQLStatement () inherited from Phalcon\Db\Adapter

Active SQL statement in the object

public getRealSQLStatement () inherited from Phalcon\Db\Adapter

Active SQL statement in the object without replace bound paramters

which does't seem to work.

Zephyr source:

    /**
     * Active SQL statement in the object
     */
    public function getSQLStatement() -> string
    {
        return this->_sqlStatement;
    }

    /**
     * Active SQL statement in the object without replace bound paramters
     */
    public function getRealSQLStatement() -> string
    {
        return this->_sqlStatement;
    }

https://api.phalcon.io/source/Phalcon/Db/Adapter.html