Rev 789 | Rev 854 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 789 | Rev 817 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | 21 | ||
22 | class OIDplusDatabaseConnectionOci extends OIDplusDatabaseConnection { |
22 | class OIDplusDatabaseConnectionOci extends OIDplusDatabaseConnection { |
23 | private $conn = null; |
23 | private $conn = null; |
24 | private $last_error = null; // do the same like MySQL+PDO, just to be equal in the behavior |
24 | private $last_error = null; // do the same like MySQL+PDO, just to be equal in the behavior |
25 | 25 | ||
26 | public static function getPlugin(): OIDplusDatabasePlugin { |
- | |
27 | return new OIDplusDatabasePluginOci(); |
- | |
28 | } |
- | |
29 | - | ||
30 | public function doQuery(string $sql, /*?array*/ $prepared_args=null): OIDplusQueryResult { |
26 | public function doQuery(string $sql, /*?array*/ $prepared_args=null): OIDplusQueryResult { |
31 | $this->last_error = null; |
27 | $this->last_error = null; |
32 | 28 | ||
33 | $mode = $this->intransaction ? OCI_NO_AUTO_COMMIT : OCI_COMMIT_ON_SUCCESS; |
29 | $mode = $this->intransaction ? OCI_NO_AUTO_COMMIT : OCI_COMMIT_ON_SUCCESS; |
34 | 30 |