Revision 2692
Added by Aaron Marcuse-Kubitza over 12 years ago
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
sql_gen.py: Added EnsureNotNull