From 305e77c23aff16b3486c584a1b327d53d75b43aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Thu, 21 Jun 2018 21:04:48 +0800 Subject: [PATCH] update --- History.md | 2 +- lib/utils.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/History.md b/History.md index 16f5dcc..cac06e2 100644 --- a/History.md +++ b/History.md @@ -1,4 +1,4 @@ -# 3.0.2 / 2018-06-21 +# 3.0.3 / 2018-06-21 * 修复filter解析空条件异常的bug; * table方法支持 AS 别名。 diff --git a/lib/utils.js b/lib/utils.js index 82cd838..0cb7806 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -154,7 +154,7 @@ const parser = { filter(opt) { let sql = '' - if (!sql) { + if (!opt) { return ' ' } if (typeof opt === 'string') { diff --git a/package.json b/package.json index b52308b..6bfbae5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mysqli", - "version": "3.0.2", + "version": "3.0.3", "description": "MySQL tool", "main": "index.js", "dependencies": {