Project

General

Profile

« Previous | Next » 

Revision 2694

sql_gen.py: EnsureNotNull: Run value through as_Col() so FunctionCall won't default it to a Literal

View differences:

lib/sql_gen.py
412 412
row_count = CustomCode('count(*)')
413 413

  
414 414
def EnsureNotNull(value, null=r'\N'):
415
    return FunctionCall(InternalFunction('coalesce'), value, null)
415
    return FunctionCall(InternalFunction('coalesce'), as_Col(value), null)
416 416

  
417 417
##### Database structure
418 418

  

Also available in: Unified diff