Closed wakjoko closed 1 year ago
Hi @wakjoko, Absolutely, thanks for testing it. I closed the other ticket after not getting feedback for a year.
What Laravel version are you using?
I'm using the latest released version 10 for both laravel and yajra's oci8 package.
Additionally, i added conditional return
based on db driver at L16.
Would be nicer if we can resolve the appropriate Builder
class without the conditional return
at all.
Additionally, i added conditional return based on db driver at L16.
Can you share this snippet?
mine look like this..
protected function newBaseQueryBuilder()
{
$connection = $this->getConnection();
if($connection->getDriverName() === 'oracle') {
return new \Staudenmeir\LaravelCte\Query\OracleBuilder($connection);
}
return new Builder($connection);
}
I created a new branch for Laravel 10. Please test it by updating the package version in your composer.json
:
"staudenmeir/laravel-cte": "dev-oracle-support",
looks good, will test it out tmr 😉
thanks! cte queries works great with yajra oracle driver, smooth like you. this is good to go but if you require unit testing, will have to spend another time on that part.
I started with integration tests, but that's quite the adventure... I'll probably release it without tests for now.
For the README: Do you know the minimum Oracle version that supports CTEs? I didn't find that in their documentation.
WITH clause was introduced since Oracle 9.2 but I'm testing on Oracle 11g (2009), vs now it's 21c.
btw, yajra's oci8 package is updated well so I'm totally confident to release this feature without testing for now.
Thanks. I released a new version with Oracle support.
hi @staudenmeir
i'm looking into oracle since few days ago and after reading issue #31, i tried on my local with hints you provided in oracle-laravel-6 branch and i can confirm it is working fine.
just wondering, would you like to get oracle driver included in this package?