You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DB::connection("oracle")->beginTransaction();
DB::connection("oracle_log")->beginTransaction();
dump(ModelExample::on("oracle")->count()); \\ 10 records
dump(ModelExample::on("oracle_log")->count()); \\ 10 records
ModelExample::on("oracle_log")->insert([
"column" => "test"
]);
dump(ModelExample::on("oracle_log")->count()); \\ 11 records
dump(ModelExample::on("oracle")->count()); \\ I expect 10 records but i have 11 records
The oracle connection and oracle_log connection have the same configs.
Using the oci_connect function, as stated in the PHP documentation, oci_connect() with the same parameters will return the connection handle returned from the first call.
Using Laravel singletons for connections, there should be no problems with an increase in sessions.
My proposal would be to use the oci_new_connect function instead of oci_connect or use a parameter within the config on which function to use.
The text was updated successfully, but these errors were encountered:
Hi everyone!
I have the following Code but it doesn't work.
The oracle connection and oracle_log connection have the same configs.
Using the oci_connect function, as stated in the PHP documentation, oci_connect() with the same parameters will return the connection handle returned from the first call.
Using Laravel singletons for connections, there should be no problems with an increase in sessions.
My proposal would be to use the oci_new_connect function instead of oci_connect or use a parameter within the config on which function to use.
The text was updated successfully, but these errors were encountered: