Revision 2954
Added by Aaron Marcuse-Kubitza almost 13 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, 'text': r'\N',
|
|
544 |
'character varying': r'\N'} |
|
543 |
null_sentinels = {'integer': 2147483647, 'double precision': 'NaN',
|
|
544 |
'text': r'\N', 'character varying': r'\N'}
|
|
545 | 545 |
|
546 | 546 |
class EnsureNotNull(FunctionCall): |
547 | 547 |
def __init__(self, value, type_): |
Also available in: Unified diff
sql_gen.py: null_sentinels: Added value for type double precision