@appland/scanner
Advanced tools
Comparing version 1.46.1 to 1.46.2
@@ -117,4 +117,9 @@ "use strict"; | ||
continue; | ||
// This is normally a noop which generates a SQL warning. | ||
// It can also happen if there's more than one SQL connection used | ||
// and the new transaction is open in a different one than before. | ||
// We currently don't track the separate connections, so we have to | ||
// assume this is the same one and issue a warning. | ||
if (isBegin(sql)) | ||
throw new Error('Transaction started within a transaction.'); | ||
console.warn("SQL transaction started within a transaction in event " + event.id); | ||
var end = isEnd(sql); | ||
@@ -126,2 +131,7 @@ if (end) { | ||
} | ||
if (!begin.transaction) { | ||
// Transaction was still active at the end of appmap; | ||
// assume it was aborted. | ||
begin.transaction = { status: 'rollback', events: transaction }; | ||
} | ||
return { | ||
@@ -128,0 +138,0 @@ scope: begin, |
{ | ||
"name": "@appland/scanner", | ||
"version": "1.46.1", | ||
"version": "1.46.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "bin": "built/cli.js", |
Sorry, the diff of this file is not supported yet
567429
8006