Project

General

Profile

« Previous | Next » 

Revision 5892

sql_gen.py: null_as_str: Use new null instead of hardcoding 'NULL'

View differences:

sql_gen.py
979 979
        FunctionCall.__init__(self, InternalFunction('NULLIF'), *args)
980 980

  
981 981
null = Literal(None)
982
null_as_str = Cast('text', 'NULL')
982
null_as_str = Cast('text', null)
983 983

  
984 984
def to_text(value): return Coalesce(Cast('text', value), null_as_str)
985 985

  

Also available in: Unified diff