Revision 3062
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
576 | 576 |
def __init__(self, *args): |
577 | 577 |
FunctionCall.__init__(self, InternalFunction('COALESCE'), *args) |
578 | 578 |
|
579 |
class Nullif(FunctionCall): |
|
580 |
def __init__(self, *args): |
|
581 |
FunctionCall.__init__(self, InternalFunction('NULLIF'), *args) |
|
582 |
|
|
579 | 583 |
# See <http://www.postgresql.org/docs/8.3/static/datatype-numeric.html> |
580 | 584 |
null_sentinels = { |
581 | 585 |
'character varying': r'\N', |
Also available in: Unified diff
sql_gen.py: Added Nullif