Files
mariadb-connector-nodejs/benchmarks/benchs/bench_select_collation.js
2018-03-12 12:22:30 +01:00

14 lines
451 B
JavaScript

const assert = require('assert');
module.exports.title = 'select multiple collation';
module.exports.displaySql = 'select * from information_schema.COLLATIONS';
module.exports.benchFct = function(conn, deferred) {
conn.query('select * from information_schema.COLLATIONS', function(err, rows) {
assert.ifError(err);
assert.ok(rows.length > 256);
assert.equal('big5_chinese_ci', rows[0].COLLATION_NAME);
deferred.resolve();
});
};