Como fazer para gerar claúsulas 'is Null' e 'is not Null'?

Data de postagem: May 18, 2010 9:1:7 PM

includeOnce -1897036629 /* /products/INTEQerp infrastructure/library/iQuery/IQuery.ijs */

var parcelas = IQuery.from( -1894443296 /* Parcelas */ )

.where(

[ {field: "CHCRIACAO", operator: "=", value: null},

"and",

{field: "CHAVE", operator: "<>", value: null}

]

)

.column({ field: "CHCRIACAO" })

parcelas.toSql()

SQL Gerado:

select PARCELA1.CHCRIACAO

from PARCELA PARCELA1

where (

PARCELA1.CHCRIACAO is null and

PARCELA1.CHAVE is not null)

and (

PARCELA1.CLASSE = -1894443296)