Menu

#1 operators in rules (get_collection)

open
nobody
None
5
2005-11-26
2005-11-26
No

didn't test other cases, but in order to '=' operator
works fine in db_hl->get_collection(...) one have to
put spaces surrounding it or it will be ignored.

Example:

'rules' => ' AND ( remessa.nota_fiscal=1 ,
remessa.cliente_id = 2') <--- will consider just
remessa.cliente_id = 2

-

'rules' => ' AND ( remessa.nota_fiscal = 1 ,
remessa.cliente_id = 2') <---- will consider both
retrictions

Discussion


Log in to post a comment.

MongoDB Logo MongoDB