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.
1 parent c19cd7c commit 88ad10cCopy full SHA for 88ad10c
test/integration/connection/test-change-user-reset.js
@@ -0,0 +1,22 @@
1
+var assert = require('assert');
2
+var common = require('../../common');
3
+
4
+common.getTestConnection(function (err, connection) {
5
+ assert.ifError(err);
6
7
+ connection.query('SET @custom = 2', assert.ifError);
8
9
+ connection.query('SELECT @custom', function (err, result) {
10
11
+ assert.strictEqual(result[0]['@custom'], 2);
12
+ });
13
14
+ connection.changeUser(assert.ifError);
15
16
17
18
+ assert.strictEqual(result[0]['@custom'], null);
19
20
21
+ connection.end(assert.ifError);
22
+});
0 commit comments