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
I have 2 connection with db (read/write). Also i set "sticky" option as true. After creating new row all request to DB use "read" connection. After updating some row, there are not any problem. This problem is happened when table has auto increment.
Steps To Reproduce:
//create some row.
$quest = factory(Quest::class)->create();
// update this row. if i remove comment for next lines, everything work alright. Because update was made. But when we make only create, selection works via "read" connection.
//$quest->limit_winners = random_int(1, 200);
//$quest->update();
// find this row. (use read connection), but if i understood right have to use write connection, because new row was created.
$quest = Quest::query()->where('id', $quest->id)->first();
print_r($quest);
The text was updated successfully, but these errors were encountered:
@taylorotwell
I found a problem here:
/framework/src/Illuminate/Database/Query/Processors/PostgresProcessor.php
When called "processInsertGetId" function we only create new row via selectFromWriteConnection. But function "recordsHaveBeenModified" is not called (this need because all next requests have to use "write connection").
Description:
I have 2 connection with db (read/write). Also i set "sticky" option as true. After creating new row all request to DB use "read" connection. After updating some row, there are not any problem. This problem is happened when table has auto increment.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: