Project

General

Profile

« Previous | Next » 

Revision 5893

sql_gen.py: NotCond: Treat a condition that evaluates to NULL as false instead, so that the boolean effect of the condition is completely inverted

View differences:

sql_gen.py
784 784
    def __init__(self, cond):
785 785
        Code.__init__(self)
786 786
        
787
        if not isinstance(cond, Coalesce): cond = Coalesce(cond, False)
788
        
787 789
        self.cond = cond
788 790
    
789 791
    def to_str(self, db): return 'NOT '+self.cond.to_str(db)

Also available in: Unified diff