@@ 244-261 (lines=18) @@ | ||
241 | * |
|
242 | * @return array Error information |
|
243 | */ |
|
244 | public function errorInfo() |
|
245 | { |
|
246 | $e = oci_error($this->dbh); |
|
247 | ||
248 | if (is_array($e)) { |
|
249 | return [ |
|
250 | 'HY000', |
|
251 | $e['code'], |
|
252 | $e['message'], |
|
253 | ]; |
|
254 | } |
|
255 | ||
256 | return [ |
|
257 | '00000', |
|
258 | null, |
|
259 | null, |
|
260 | ]; |
|
261 | } |
|
262 | ||
263 | /** |
|
264 | * Retrieve a database connection attribute |
@@ 460-477 (lines=18) @@ | ||
457 | * @return array Array of error information about the last operation |
|
458 | * performed |
|
459 | */ |
|
460 | public function errorInfo() |
|
461 | { |
|
462 | $e = oci_error($this->sth); |
|
463 | ||
464 | if (is_array($e)) { |
|
465 | return [ |
|
466 | 'HY000', |
|
467 | $e['code'], |
|
468 | $e['message'], |
|
469 | ]; |
|
470 | } |
|
471 | ||
472 | return [ |
|
473 | '00000', |
|
474 | null, |
|
475 | null, |
|
476 | ]; |
|
477 | } |
|
478 | ||
479 | /** |
|
480 | * Sets a statement attribute |