Revision 2958
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/sql_gen.py | ||
---|---|---|
540 | 540 |
row_count = CustomCode('count(*)') |
541 | 541 |
|
542 | 542 |
# See <http://www.postgresql.org/docs/8.3/static/datatype-numeric.html> |
543 |
null_sentinels = {'integer': 2147483647, 'double precision': 'NaN', |
|
544 |
'text': r'\N', 'character varying': r'\N'} |
|
543 |
null_sentinels = { |
|
544 |
'character varying': r'\N', |
|
545 |
'double precision': 'NaN', |
|
546 |
'integer': 2147483647, |
|
547 |
'text': r'\N', |
|
548 |
'timestamp with time zone': 'infinity' |
|
549 |
} |
|
545 | 550 |
|
546 | 551 |
class EnsureNotNull(FunctionCall): |
547 | 552 |
def __init__(self, value, type_): |
Also available in: Unified diff
sql_gen.py: null_sentinels: Added value for type timestamp with time zone. Put each type on its own line for clarity.