summaryrefslogtreecommitdiff
path: root/lib/extensions.py
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2008-01-16 01:43:50 +0000
committerJames Henstridge <james@jamesh.id.au>2008-01-16 01:43:50 +0000
commit46bf23caf47c3f08194e524312b5afbe0c449b70 (patch)
tree7fcc0eec19ccc56135bed8e91980f78f66e84df8 /lib/extensions.py
parentf18881983bbf021b226d2aee1961a6fe1605af29 (diff)
downloadpsycopg2-46bf23caf47c3f08194e524312b5afbe0c449b70.tar.gz
* tests/__init__.py (test_suite): add date tests to test suite.
* tests/test_dates.py: add tests for date/time typecasting and adaption. * psycopg/adapter_mxdatetime.c (mxdatetime_str): add support for outputting BC dates (which involves switching them to one-based dates). Also remove broken handling of microseconds. * psycopg/typecast.c (typecast_parse_date): if the string ends with "BC" adjust the year value to be a zero-based BC value as used by mx.DateTime (datetime doesn't support BC dates). (typecast_parse_time): ignore ' ', 'B' and 'C' in time strings rather than treating them as part of the seconds part of the time.
Diffstat (limited to 'lib/extensions.py')
0 files changed, 0 insertions, 0 deletions