From d81cba0b7ac96b4214a3b98bea6eaaf193111421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Thu, 24 Jun 2021 18:13:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=94=99=E8=AF=AF=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils.js | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 868502a..b5eada9 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -297,6 +297,12 @@ class SqlErr { this.message = msg this.sql = sql hideProperty(this, 'stack', msg) + console.error( + '-'.repeat(50), + '[Last Query SQL]: ' + sql, + `Query ${msg}`, + '-'.repeat(50) + ) } toString() { diff --git a/package.json b/package.json index ac66446..e032321 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mysqli", - "version": "3.1.0", + "version": "3.1.1", "description": "MySQL tool", "main": "index.js", "dependencies": {