knex 0.95.13 → 0.95.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
# Master (Unreleased)
|
|
2
2
|
|
|
3
|
+
# 0.95.14 - 09 November, 2021
|
|
4
|
+
|
|
5
|
+
### Bug fixes:
|
|
6
|
+
|
|
7
|
+
- MySQL: mysql2 dialect validate connection fix #4794
|
|
8
|
+
|
|
3
9
|
# 0.95.13 - 02 November, 2021
|
|
4
10
|
|
|
5
11
|
### Bug fixes:
|
|
6
12
|
|
|
7
|
-
|
|
13
|
+
- PostgreSQL: Support zero precision in timestamp/datetime #4784
|
|
8
14
|
|
|
9
15
|
### Typings:
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
- Allow string indexType in index creation #4791
|
|
12
18
|
|
|
13
19
|
# 0.95.12 - 28 October, 2021
|
|
14
20
|
|
|
@@ -89,13 +89,9 @@ class Client_MySQL extends Client {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
validateConnection(connection) {
|
|
92
|
-
|
|
93
|
-
connection.state === 'connected' ||
|
|
94
|
-
|
|
95
|
-
) {
|
|
96
|
-
return true;
|
|
97
|
-
}
|
|
98
|
-
return false;
|
|
92
|
+
return (
|
|
93
|
+
connection.state === 'connected' || connection.state === 'authenticated'
|
|
94
|
+
);
|
|
99
95
|
}
|
|
100
96
|
|
|
101
97
|
// Grab a connection, run the query via the MySQL streaming interface,
|
|
@@ -15,10 +15,13 @@ class Client_MySQL2 extends Client_MySQL {
|
|
|
15
15
|
return require('mysql2');
|
|
16
16
|
}
|
|
17
17
|
validateConnection(connection) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
return (
|
|
19
|
+
connection &&
|
|
20
|
+
!connection._fatalError &&
|
|
21
|
+
!connection._protocolError &&
|
|
22
|
+
!connection._closing &&
|
|
23
|
+
!connection.stream.destroyed
|
|
24
|
+
);
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
|
package/package.json
CHANGED