lib/newsql.js
function  matchSQLFilter(tableSchema, whereCol)  {
	for (var i in whereCol)  {
		var  col = whereCol[i],
			 schema = tableSchema[col.tbName];

		if (!schema)
			throw  new Error('A filter column refers to an unknown table [' + col.tbName + ']');

		if (schema.columns.indexOf(col.col) < 0)
			return  false;
	}
	return  true;
}
function  matchSQLFilter(tableSchema, whereCol)  {
	for (var i in whereCol)  {
		var  col = whereCol[i],
			 schema = tableSchema[col.tbName];

		if (!schema)
			throw  new Error('A filter column refers to an unknown table [' + col.tbName + ']');

		if (schema.columns.indexOf(col.col) < 0)
			return  false;
	}
	return  true;
}
function matchSQLFilter ( tableSchema , whereCol ) { for ( var i in whereCol ) { var col = whereCol [ i ] , schema = tableSchema [ col . tbName ] ; if ( ! schema ) throw new Error ( 'A filter column refers to an unknown table [' + col . tbName + ']' ) ; if ( schema . columns . indexOf ( col . col ) < 0 ) return false ; } return true ; }
check if whereCol contains any non-sql columns.
check if whereCol contains any non - sql columns .