@@ -826,12 +826,12 @@ protected function runQueryCallback($query, $bindings, Closure $callback)
826826 catch (Exception $ e ) {
827827 if ($ this ->isUniqueConstraintError ($ e )) {
828828 throw new UniqueConstraintViolationException (
829- $ this ->getName (), $ query , $ this ->prepareBindings ($ bindings ), $ e , $ this ->latestPdoTypeUsed ()
829+ $ this ->getName (), $ query , $ this ->prepareBindings ($ bindings ), $ e , $ this ->latestReadWriteTypeUsed ()
830830 );
831831 }
832832
833833 throw new QueryException (
834- $ this ->getName (), $ query , $ this ->prepareBindings ($ bindings ), $ e , $ this ->latestPdoTypeUsed ()
834+ $ this ->getName (), $ query , $ this ->prepareBindings ($ bindings ), $ e , $ this ->latestReadWriteTypeUsed ()
835835 );
836836 }
837837 }
@@ -858,7 +858,7 @@ protected function isUniqueConstraintError(Exception $exception)
858858 public function logQuery ($ query , $ bindings , $ time = null )
859859 {
860860 $ this ->totalQueryDuration += $ time ?? 0.0 ;
861- $ readWriteType = $ this ->latestPdoTypeUsed ();
861+ $ readWriteType = $ this ->latestReadWriteTypeUsed ();
862862
863863 $ this ->event (new QueryExecuted ($ query , $ bindings , $ time , $ this , $ readWriteType ));
864864
@@ -1647,11 +1647,11 @@ protected function retrievingPdoType($type)
16471647 }
16481648
16491649 /**
1650- * Retrieve the latest pdo read / write type.
1650+ * Retrieve the latest read / write type used .
16511651 *
16521652 * @return 'read'|'write'
16531653 */
1654- protected function latestPdoTypeUsed ()
1654+ protected function latestReadWriteTypeUsed ()
16551655 {
16561656 return $ this ->readWriteType ?? $ this ->latestPdoTypeUsed ;
16571657 }
0 commit comments