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": {