等于更改为全等于

This commit is contained in:
wavelynn 2014-10-17 20:44:09 +08:00
parent b11e3c14f6
commit fb3fbbc08c

View File

@ -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;