2014-10-23 10:52:21 -04:00
|
|
|
var common = require('../../common');
|
|
|
|
var connection = common.createConnection();
|
|
|
|
var assert = require('assert');
|
|
|
|
|
|
|
|
var rows = undefined;
|
|
|
|
var fields = undefined;
|
|
|
|
var multibyteText = '本日は晴天なり';
|
|
|
|
connection.query("SELECT '" + multibyteText + "'", function(err, _rows, _fields) {
|
|
|
|
if (err) throw err;
|
|
|
|
rows = _rows;
|
|
|
|
fields = _fields;
|
2015-01-28 15:33:44 -05:00
|
|
|
connection.end();
|
2014-10-23 10:52:21 -04:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
process.on('exit', function() {
|
|
|
|
assert.equal(rows[0][multibyteText], multibyteText);
|
|
|
|
assert.equal(fields[0].name, multibyteText);
|
|
|
|
});
|