Prado\Data\TDbCommand::prepare PHP 메소드

prepare() 공개 메소드

For complex SQL statement that is to be executed multiple times, this may improve performance. For SQL statement with binding parameters, this method is invoked automatically.
public prepare ( )
    public function prepare()
    {
        if ($this->_statement == null) {
            try {
                $this->_statement = $this->getConnection()->getPdoInstance()->prepare($this->getText());
            } catch (Exception $e) {
                throw new TDbException('dbcommand_prepare_failed', $e->getMessage(), $this->getText());
            }
        }
    }