Project

General

Profile

« Previous | Next » 

Revision 2954

sql_gen.py: null_sentinels: Added value for type double precision

View differences:

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