equal
deleted
inserted
replaced
1504 if constant.type is None: |
1504 if constant.type is None: |
1505 return 'NULL' |
1505 return 'NULL' |
1506 value = constant.value |
1506 value = constant.value |
1507 if constant.type == 'etype': |
1507 if constant.type == 'etype': |
1508 return value |
1508 return value |
1509 if constant.type == 'Int': # XXX Float? |
1509 # don't substitute int, causes pb when used as sorting column number |
|
1510 if constant.type == 'Int': |
1510 return str(value) |
1511 return str(value) |
1511 if constant.type in ('Date', 'Datetime'): |
1512 if constant.type in ('Date', 'Datetime'): |
1512 rel = constant.relation() |
1513 rel = constant.relation() |
1513 if rel is not None: |
1514 if rel is not None: |
1514 rel._q_needcast = value |
1515 rel._q_needcast = value |