diff options
| author | James Henstridge <james@jamesh.id.au> | 2008-01-16 01:43:50 +0000 |
|---|---|---|
| committer | James Henstridge <james@jamesh.id.au> | 2008-01-16 01:43:50 +0000 |
| commit | 46bf23caf47c3f08194e524312b5afbe0c449b70 (patch) | |
| tree | 7fcc0eec19ccc56135bed8e91980f78f66e84df8 /psycopg/psycopgmodule.c | |
| parent | f18881983bbf021b226d2aee1961a6fe1605af29 (diff) | |
| download | psycopg2-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 'psycopg/psycopgmodule.c')
0 files changed, 0 insertions, 0 deletions
