public function getMaxAllowedPacket()
    {
        if ($this->maxAllowedPacket === null) {
            $statement = $this->prepare('SELECT @@global.max_allowed_packet');
            $statement->execute();

            $this->maxAllowedPacket = (int) $statement->fetchColumn();
        }

        return $this->maxAllowedPacket;
    }
public function getMaxAllowedPacket()
    {
        if ($this->maxAllowedPacket === null) {
            $statement = $this->prepare('SELECT @@global.max_allowed_packet');
            $statement->execute();

            $this->maxAllowedPacket = (int) $statement->fetchColumn();
        }

        return $this->maxAllowedPacket;
    }
public function getMaxAllowedPacket ( ) { if ( $ this -> maxAllowedPacket === null ) { $ statement = $ this -> prepare ( 'SELECT @@global.max_allowed_packet' ) ; $ statement -> execute ( ) ; $ this -> maxAllowedPacket = ( int ) $ statement -> fetchColumn ( ) ; } return $ this -> maxAllowedPacket ; }
Gets the MySQL max allowed packet constant.

@link http://dev.mysql.com/doc/refman/5.0/en/program-variables.html

@return integer The max allowed packet.
Gets the MySQL max allowed packet constant .