Skip to content

Commit

Permalink
changed postgres processor (#34055)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpereirabp committed Aug 31, 2020
1 parent b75387b commit 4fba87f
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -17,7 +17,11 @@ class PostgresProcessor extends Processor
*/
public function processInsertGetId(Builder $query, $sql, $values, $sequence = null)
{
$result = $query->getConnection()->selectFromWriteConnection($sql, $values)[0];
$connection = $query->getConnection();

$connection->recordsHaveBeenModified();

$result = $connection->selectFromWriteConnection($sql, $values)[0];

$sequence = $sequence ?: 'id';

Expand Down

0 comments on commit 4fba87f

Please sign in to comment.