Skip to content

Commit f6b390f

Browse files
dresendedougwilson
authored andcommitted
tests: add change user charset integration test
1 parent ba79800 commit f6b390f

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
var assert = require('assert');
2+
var common = require('../../common');
3+
4+
common.getTestConnection(function (err, connection) {
5+
assert.ifError(err);
6+
7+
connection.changeUser({charset: 'KOI8R_GENERAL_CI'}, function (err) {
8+
assert.ifError(err);
9+
10+
connection.query('SHOW VARIABLES LIKE \'character_set_client\'', function (err, result) {
11+
assert.ifError(err);
12+
assert.strictEqual(result[0]['Value'], 'koi8r');
13+
14+
connection.destroy();
15+
});
16+
});
17+
});

0 commit comments

Comments
 (0)