We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ff8890 + 9d46fbb commit b6175d8Copy full SHA for b6175d8
lib/commands/execute.js
@@ -50,7 +50,17 @@ Execute.prototype.start = function(packet, connection) {
50
this.parameters,
51
connection.config.charsetNumber
52
);
53
- connection.writePacket(executePacket.toPacket(1));
+ //For reasons why this try-catch is here, please see
54
+ // https://github.com/sidorares/node-mysql2/pull/689
55
+ //For additional discussion, see
56
+ // 1. https://github.com/sidorares/node-mysql2/issues/493
57
+ // 2. https://github.com/sidorares/node-mysql2/issues/187
58
+ // 3. https://github.com/sidorares/node-mysql2/issues/480
59
+ try {
60
+ connection.writePacket(executePacket.toPacket(1));
61
+ } catch (error) {
62
+ this.onResult(error)
63
+ }
64
return Execute.prototype.resultsetHeader;
65
};
66
0 commit comments