/**
  * {@inheritdoc}
  */
 public function execute($params = null)
 {
     if ($params) {
         $hasZeroIndex = array_key_exists(0, $params);
         foreach ($params as $key => $val) {
             if ($hasZeroIndex && is_numeric($key)) {
                 $this->bindValue($key + 1, $val);
             } else {
                 $this->bindValue($key, $val);
             }
         }
     }
     $ret = @oci_execute($this->_sth, $this->_conn->getExecuteMode());
     if (!$ret) {
         throw OCI8Exception::fromErrorInfo($this->errorInfo());
     }
     return $ret;
 }
Exemplo n.º 2
0
 public function testDoesNotRequireQueryForServerVersion()
 {
     $this->assertFalse($this->connectionMock->requiresQueryForServerVersion());
 }