public function getEmulatedSQL($preservedStrLength = -1)
    {
        $context = $this->_context;

        if (!$context->bind) {
            return (string)$context->sql;
        }

        $bind = $context->bind;
        if (isset($bind[0])) {
            return (string)$context->sql;
        } else {
            $replaces = [];
            foreach ($bind as $key => $value) {
                $replaces[':' . $key] = $this->_parseBindValue($value, $preservedStrLength);
            }

            return strtr($context->sql, $replaces);
        }
    }
public function getEmulatedSQL($preservedStrLength = -1)
    {
        $context = $this->_context;

        if (!$context->bind) {
            return (string)$context->sql;
        }

        $bind = $context->bind;
        if (isset($bind[0])) {
            return (string)$context->sql;
        } else {
            $replaces = [];
            foreach ($bind as $key => $value) {
                $replaces[':' . $key] = $this->_parseBindValue($value, $preservedStrLength);
            }

            return strtr($context->sql, $replaces);
        }
    }
public function getEmulatedSQL ( $ preservedStrLength = - 1 ) { $ context = $ this -> _context ; if ( ! $ context -> bind ) { return ( string ) $ context -> sql ; } $ bind = $ context -> bind ; if ( isset ( $ bind [ 0 ] ) ) { return ( string ) $ context -> sql ; } else { $ replaces = [ ] ; foreach ( $ bind as $ key => $ value ) { $ replaces [ ':' . $ key ] = $ this -> _parseBindValue ( $ value , $ preservedStrLength ) ; } return strtr ( $ context -> sql , $ replaces ) ; } }
Active SQL statement in the object with replace the bind with value

@param int $preservedStrLength

@return string
Active SQL statement in the object with replace the bind with value