I am using Yajra/Oci8 Oracle DB driver for laravel at some point I notice, when I select on a specific view it returns a different result from what I should be getting.
Query and Result from oracle Sqldeveloper 270 records
Query and Result from Laravel no query builder Returns 270 records
Query and Result from Laravel using Query Builder Returns 5613 records
Please help.. I've already tested it into other machines even on our production server, still no idea what has gone wrong.
I just found out that the NLS date format of the oracle database that I was trying to query into is not the same with the default NLS date format that Yajra/laravel Oci8 Oracle Drive initialized, so I have to alter the $sessionvars
to make it right.
Problem solved!