Project

General

Profile

« Previous | Next » 

Revision 2692

sql_gen.py: Added EnsureNotNull

View differences:

lib/sql_gen.py
411 411

  
412 412
row_count = CustomCode('count(*)')
413 413

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

  
414 417
##### Database structure
415 418

  
416 419
class TypedCol(Col):

Also available in: Unified diff