Skip to content

Commit 6205519

Browse files
committed
drop table if exist
1 parent 20355d2 commit 6205519

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/integration/connection/encoding/test-client-encodings.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ var common = require('../../../common');
33
var assert = require('assert');
44

55
var connection = common.createConnection({charset: 'UTF8MB4_GENERAL_CI'});
6-
connection.query('drop table __test_client_encodings');
7-
connection.query('create table if not exists __test_client_encodings (name VARCHAR(200)) CHARACTER SET=utf8mb4', function(err) {
6+
connection.query('drop table if exists __test_client_encodings');
7+
connection.query('create table if not exists __test_client_encodings (name VARCHAR(200)) CHARACTER SET=utf8mb4', function (err) {
88
assert.ifError(err);
9-
connection.query('delete from __test_client_encodings', function(err) {
9+
connection.query('delete from __test_client_encodings', function (err) {
1010
assert.ifError(err);
1111
connection.end();
1212

1313
var connection1 = common.createConnection({charset: 'CP1251_GENERAL_CI'});
14-
connection1.query('insert into __test_client_encodings values("привет, мир")', function(err) {
14+
connection1.query('insert into __test_client_encodings values("привет, мир")', function (err) {
1515
assert.ifError(err);
1616
connection1.end();
1717

1818
var connection2 = common.createConnection({charset: 'KOI8R_GENERAL_CI'});
19-
connection2.query('select * from __test_client_encodings', function(err, rows) {
19+
connection2.query('select * from __test_client_encodings', function (err, rows) {
2020
assert.ifError(err);
2121
assert.equal(rows[0].name, 'привет, мир');
2222
connection2.end();

0 commit comments

Comments
 (0)