Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 1b92362

Browse files
feat(mysql): update MySQL wrapper to propagate fields. (#1412)
Co-authored-by: sofisl <[email protected]>
1 parent 1d89f08 commit 1b92362

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/plugin-mysql.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function createCreateQueryWrap(api) {
4848
}
4949

5050
function wrapCallback(api, span, done) {
51-
const fn = function (err, res) {
51+
const fn = function (err, res, fields) {
5252
if (api.enhancedDatabaseReportingEnabled()) {
5353
if (err) {
5454
span.addLabel('error', err);
@@ -59,7 +59,7 @@ function wrapCallback(api, span, done) {
5959
}
6060
span.endSpan();
6161
if (done) {
62-
done(err, res);
62+
done(err, res, fields);
6363
}
6464
};
6565
return api.wrap(fn);

0 commit comments

Comments
 (0)