8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c878a18 commit d1ae232Copy full SHA for d1ae232
laravel/database/connection.php
@@ -197,7 +197,7 @@ public function query($sql, $bindings = array())
197
// For insert statements that use the "returning" clause, which is allowed
198
// by database systems such as Postgres, we need to actually return the
199
// real query result so the consumer can get the ID.
200
- elseif (stripos($sql, 'insert') === 0 and stripos($sql, 'returning') !== false)
+ elseif (stripos($sql, 'insert') === 0 and stripos($sql, ') returning') !== false)
201
{
202
return $this->fetch($statement, Config::get('database.fetch'));
203
}
0 commit comments