@@ -82,12 +82,10 @@ public function execute(array $params = []) {
82
82
*/
83
83
public function fetchAll ($ fetchStyle = PDO ::FETCH_ASSOC , $ fetchArgument = null , array $ ctorArgs = []): array {
84
84
$ result = $ this ->exceptionHandler (function () use ($ fetchStyle , $ fetchArgument , $ ctorArgs ) {
85
- return $ this ->queryLoggers ->logRegion ($ this ->query , function () use ($ fetchStyle , $ fetchArgument , $ ctorArgs ) {
86
- if ($ fetchArgument !== null ) {
87
- return $ this ->statement ->fetchAll ($ fetchStyle , $ fetchArgument , ...$ ctorArgs );
88
- }
89
- return $ this ->statement ->fetchAll ($ fetchStyle );
90
- });
85
+ if ($ fetchArgument !== null ) {
86
+ return $ this ->statement ->fetchAll ($ fetchStyle , $ fetchArgument , ...$ ctorArgs );
87
+ }
88
+ return $ this ->statement ->fetchAll ($ fetchStyle );
91
89
});
92
90
if (is_bool ($ result )) {
93
91
return [];
@@ -103,9 +101,7 @@ public function fetchAll($fetchStyle = PDO::FETCH_ASSOC, $fetchArgument = null,
103
101
*/
104
102
public function fetch ($ fetchStyle = PDO ::FETCH_ASSOC , $ cursorOrientation = PDO ::FETCH_ORI_NEXT , $ cursorOffset = 0 ) {
105
103
return $ this ->exceptionHandler (function () use ($ fetchStyle , $ cursorOrientation , $ cursorOffset ) {
106
- return $ this ->queryLoggers ->logRegion ($ this ->query , function () use ($ fetchStyle , $ cursorOrientation , $ cursorOffset ) {
107
- return $ this ->statement ->fetch ($ fetchStyle , $ cursorOrientation , $ cursorOffset );
108
- });
104
+ return $ this ->statement ->fetch ($ fetchStyle , $ cursorOrientation , $ cursorOffset );
109
105
});
110
106
}
111
107
@@ -115,9 +111,7 @@ public function fetch($fetchStyle = PDO::FETCH_ASSOC, $cursorOrientation = PDO::
115
111
*/
116
112
public function fetchColumn ($ columnNo = 0 ) {
117
113
return $ this ->exceptionHandler (function () use ($ columnNo ) {
118
- return $ this ->queryLoggers ->logRegion ($ this ->query , function () use ($ columnNo ) {
119
- return $ this ->statement ->fetchColumn ($ columnNo );
120
- });
114
+ return $ this ->statement ->fetchColumn ($ columnNo );
121
115
});
122
116
}
123
117
0 commit comments