/**
  * {@inheritDoc}
  */
 public function __construct($sth, Oci8 $connection = null, array $options = [])
 {
     if (is_object($sth) && $sth instanceof Statement) {
         list($sth, $connection, $options) = $this->_getParentProperties($sth, ['sth', 'connection', 'options']);
     }
     parent::__construct($sth, $connection, $options);
 }
 /**
  * Constructor
  *
  */
 public function __construct($sth, Oci8 $pdoOci8 = null, array $options = array())
 {
     if (is_object($sth) && $sth instanceof Statement) {
         parent::__construct($sth->_sth, $sth->_pdoOci8, $sth->_options);
     } else {
         parent::__construct($sth, $pdoOci8, $options);
     }
 }
Beispiel #3
0
 /**
  * Constructor
  *
  */
 public function __construct($sth, Oci8 $pdoOci8 = null, array $options = array())
 {
     $this->_cursorOpen = true;
     if (is_object($sth) && get_class($sth) == 'yajra\\Pdo\\Oci8\\Statement') {
         $this->_sth = $sth->_sth;
         $this->_pdoOci8 = $sth->_pdoOci8;
         $this->_options = $sth->_options;
     } else {
         parent::__construct($sth, $pdoOci8, $options);
     }
 }