mysql2-core 0.2.2 → 0.2.3
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/package.json +1 -1
- package/src/index.ts +2 -2
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -209,10 +209,10 @@ export async function query<T>(pool: Pool | PoolConnection, sql: string, args?:
|
|
|
209
209
|
} else {
|
|
210
210
|
if (results.length > 0) {
|
|
211
211
|
const arrayResult = results.map(item => {
|
|
212
|
-
if(Array.isArray(item)) {
|
|
212
|
+
if (Array.isArray(item)) {
|
|
213
213
|
return formatData<T>(fields, item);
|
|
214
214
|
} else {
|
|
215
|
-
return item
|
|
215
|
+
return item;
|
|
216
216
|
}
|
|
217
217
|
});
|
|
218
218
|
return resolve(handleResults(arrayResult, m, bools));
|