diff --git a/plugins/dbgate-plugin-xml/src/backend/writer.js b/plugins/dbgate-plugin-xml/src/backend/writer.js index e5abab25..8b87016d 100644 --- a/plugins/dbgate-plugin-xml/src/backend/writer.js +++ b/plugins/dbgate-plugin-xml/src/backend/writer.js @@ -47,6 +47,10 @@ class StringifyStream extends stream.Transform { } _transform(chunk, encoding, done) { + if (chunk.__isStreamHeader) { + done(); + return; + } this.startElement(this.itemElementName); this.push('\n'); for (const key of Object.keys(chunk)) {