From fb3fbbc08ccdd1b5cfe7aa123253fa06db9250d3 Mon Sep 17 00:00:00 2001 From: wavelynn Date: Fri, 17 Oct 2014 20:44:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=89=E4=BA=8E=E6=9B=B4=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=85=A8=E7=AD=89=E4=BA=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Lib/Core/Db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Lib/Core/Db.js b/lib/Lib/Core/Db.js index 52cb9743..89f4ca29 100644 --- a/lib/Lib/Core/Db.js +++ b/lib/Lib/Core/Db.js @@ -472,7 +472,7 @@ var Db = module.exports = Class(function(){ // join 表中包含空格、tab等,认为是sql语句使用情况,与buildSql结合使用 var table = item.table.trim(); if( /\s+/.test(table) ) { - if( table.indexOf('(') != 0 ) { + if( table.indexOf('(') !== 0 ) { table = '(' + table + ')'; } joinStr += joinType + table;