File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -927,6 +927,16 @@ public function getPdo()
927
927
return $ this ->pdo ;
928
928
}
929
929
930
+ /**
931
+ * Get the raw current PDO connection parameter.
932
+ *
933
+ * @return \PDO|\Closure|null
934
+ */
935
+ public function getRawPdo ()
936
+ {
937
+ return $ this ->pdo ;
938
+ }
939
+
930
940
/**
931
941
* Get the current PDO connection used for reading.
932
942
*
@@ -949,6 +959,16 @@ public function getReadPdo()
949
959
return $ this ->readPdo ?: $ this ->getPdo ();
950
960
}
951
961
962
+ /**
963
+ * Get the raw current read PDO connection parameter.
964
+ *
965
+ * @return \PDO|\Closure|null
966
+ */
967
+ public function getRawReadPdo ()
968
+ {
969
+ return $ this ->readPdo ;
970
+ }
971
+
952
972
/**
953
973
* Set the PDO connection.
954
974
*
Original file line number Diff line number Diff line change @@ -256,8 +256,8 @@ protected function refreshPdoConnections($name)
256
256
$ fresh = $ this ->makeConnection ($ name );
257
257
258
258
return $ this ->connections [$ name ]
259
- ->setPdo ($ fresh ->getPdo ())
260
- ->setReadPdo ($ fresh ->getReadPdo ());
259
+ ->setPdo ($ fresh ->getRawPdo ())
260
+ ->setReadPdo ($ fresh ->getRawReadPdo ());
261
261
}
262
262
263
263
/**
You can’t perform that action at this time.
0 commit comments