Oracle OCI8 support for CI 4 |
There is a pull request waiting for review and integration. If you wanted to speed the process along, you could pull down that branch and run it through the tests and see how close it gets. I don't have Oracle installed currently so this would go a huge way toward getting it integrated.
It's been quite a while, but we are getting close to getting the Oracle driver into CI4.
If anyone can test it, please pull down the branch of the PR https://github.com/codeigniter4/CodeIgniter4/pull/2487 and test it.
Hi! im testing the oralce driver and i got some bugs in it.. ill listing over here:
1) storeProcedures are not working correctly im doing something like this: PHP Code: $query = $db->storedProcedure('PAC_WIKI', 'INSERT_DOCUMENT', $params); and get the next error: oci_parse() expects parameter 1 to be resource, bool given SYSTEMPATH\Database\OCI8\Connection.php at line 507 Code: 500 if (isset($param['type']) && $param['type'] === OCI_B_CURSOR) { its seems like $this->connID is not retrivieng the connection 2) this storeProcedure will work with procedures in packages but it will not work (i think) with procedures alone without a package Code: public function storedProcedure(string $package, string $procedure, array $params)
Hi Boyos!
i fixed the problem rewriting the Connection.php from the OCI8 Driver this way: Code: public function storedProcedure(string $package, string $procedure, array $params) All yours for testing! Salute! (10-13-2021, 12:11 AM)kenjis Wrote: It's been quite a while, but we are getting close to getting the Oracle driver into CI4. Hi Kenji, I have downloaded it and I am testing it against an Oracle Database 12c Release 2 Enterprise Edition (12.2.0.1.0). It seems to work pretty well with the Doctrine integration (CLI ORM mapping, auto generation of entities, etc.) Regards, Bert (10-25-2021, 01:08 PM)gurthang75 Wrote: Last but not least.... i dont know if this is the correct place to show bugs or anything...[/code] Don't worry. I saw your report. Thanks! But if you report a bug on GitHub, you don't have to worry about us missing it. (10-30-2021, 01:28 PM)b126 Wrote: I have downloaded it and I am testing it against an Oracle Database 12c Release 2 Enterprise Edition (12.2.0.1.0). Thank you for your cooperation!
HI again!
im having troubles with package/procedures executions when i got OUT variables in my package i dont know how to retrieve the returning OUT variable value. Can someone gide me a bit? im foing this: Code: function addSection($parent_section, $sec_code, $sec_long){ and that "print_r()" give me this array: Code: CodeIgniter\Database\OCI8\Result Object ( [connID] => Resource id #12 [resultID] => Resource id #13 [resultArray] => Array ( ) [resultObject] => Array ( ) [customResultObject] => Array ( ) [currentRow] => 0 [numRows:protected] => [rowData] => ) thks in advance!
See Example #6 Using a PL/SQL stored procedure in https://www.php.net/manual/en/oci8.examples.php
|
Welcome Guest, Not a member yet? Register Sign In |