mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
等于更改为全等于
This commit is contained in:
parent
b11e3c14f6
commit
fb3fbbc08c
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user