Revision 2694
Added by Aaron Marcuse-Kubitza over 12 years ago
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
sql_gen.py: EnsureNotNull: Run value through as_Col() so FunctionCall won't default it to a Literal