| @@ 39-53 (lines=15) @@ | ||
| 36 | return $isSuccess; |
|
| 37 | } |
|
| 38 | ||
| 39 | public function close() |
|
| 40 | { |
|
| 41 | $isSuccess = false; |
|
| 42 | if ($this->resource) { |
|
| 43 | set_error_handler(static::getErrorHandler()); |
|
| 44 | $isSuccess = oci_close($this->resource); |
|
| 45 | restore_error_handler(); |
|
| 46 | } |
|
| 47 | ||
| 48 | if ($isSuccess) { |
|
| 49 | $this->resource = null; |
|
| 50 | } |
|
| 51 | ||
| 52 | return $isSuccess; |
|
| 53 | } |
|
| 54 | ||
| 55 | public function commit() |
|
| 56 | { |
|
| @@ 137-150 (lines=14) @@ | ||
| 134 | return $field; |
|
| 135 | } |
|
| 136 | ||
| 137 | public function free() |
|
| 138 | { |
|
| 139 | $isSuccess = false; |
|
| 140 | set_error_handler(static::getErrorHandler()); |
|
| 141 | if ($this->resource) { |
|
| 142 | $isSuccess = oci_free_statement($this->resource); |
|
| 143 | } |
|
| 144 | restore_error_handler(); |
|
| 145 | ||
| 146 | if ($isSuccess) { |
|
| 147 | $this->resource = null; |
|
| 148 | } |
|
| 149 | return $isSuccess; |
|
| 150 | } |
|
| 151 | ||
| 152 | public function getImplicitResultset() |
|
| 153 | { |
|