mm_mysql 1.9.4 → 1.9.5
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/index.js +0 -8
- package/package.json +1 -1
- package/test.js +1 -1
package/index.js
CHANGED
|
@@ -90,10 +90,6 @@ class Mysql {
|
|
|
90
90
|
$.log.debug("SQL:", sql);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
if (!$this.conn) {
|
|
94
|
-
$this.open();
|
|
95
|
-
}
|
|
96
|
-
|
|
97
93
|
// 返回一个 Promise
|
|
98
94
|
return new Promise((resolve, reject) => {
|
|
99
95
|
$this.conn.getConnection(function(err, db) {
|
|
@@ -159,10 +155,6 @@ class Mysql {
|
|
|
159
155
|
$.log.debug("SQL:", sql);
|
|
160
156
|
}
|
|
161
157
|
|
|
162
|
-
if (!$this.conn) {
|
|
163
|
-
$this.open();
|
|
164
|
-
}
|
|
165
|
-
|
|
166
158
|
// 返回一个 Promise
|
|
167
159
|
return new Promise((resolve, reject) => {
|
|
168
160
|
$this.conn.getConnection(function(err, db) {
|
package/package.json
CHANGED