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 e388a9f commit a191631Copy full SHA for a191631
.travis.yml
@@ -75,7 +75,7 @@ install:
75
76
before_script:
77
- "docker --version"
78
- - "docker exec mysql mysql -e 'select version()'"
+ - "node tool/mysql-version.js"
79
80
script:
81
# Run test script
tool/mysql-version.js
@@ -0,0 +1,19 @@
1
+var common = require('../test/common');
2
+
3
+process.nextTick(run);
4
5
+function run() {
6
+ var conn = common.createConnection();
7
8
+ conn.connect(function () {
9
+ conn.destroy();
10
11
+ try {
12
+ console.log(conn._protocol._handshakeInitializationPacket.serverVersion);
13
+ process.exit(0);
14
+ } catch (e) {
15
+ console.error('unable to get mysql version');
16
+ process.exit(1);
17
+ }
18
+ });
19
+}
0 commit comments