psycopg2/psycopg
James Henstridge cceaa7331b * psycopg/typecast.c (typecast_parse_time): give the correct
return value for partially parsed time values.

	* psycopg/typecast_mxdatetime.c (typecast_MXDATE_cast): return
	NULL after setting DataError.  Also, don't treat it as an error if
	typecast_parse_time() returns 0 (as might happen if the remainder
	of the string is " BC").

	* psycopg/typecast_datetime.c (typecast_PYDATE_cast): return NULL
	after setting DataError.
	(typecast_PYDATETIME_cast): same here.
	(typecast_PYTIME_cast): same here.

	* tests/test_dates.py
	(CommonDatetimeTestsMixin.test_parse_incomplete_date): test that
	parsing incomplete date values results in DataError.
	(CommonDatetimeTestsMixin.test_parse_incomplete_time): same for
	times.
	(CommonDatetimeTestsMixin.test_parse_incomplete_time): same for
	datetimes.
2008-03-17 04:06:44 +00:00
..
adapter_asis.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
adapter_asis.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
adapter_binary.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
adapter_binary.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
adapter_datetime.c * Add HIDDEN attribute to datetime related global variables. 2008-01-22 00:13:42 +00:00
adapter_datetime.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
adapter_list.c Add more const qualifiers. 2008-01-21 21:01:08 +00:00
adapter_list.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
adapter_mxdatetime.c * Add HIDDEN attribute to datetime related global variables. 2008-01-22 00:13:42 +00:00
adapter_mxdatetime.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
adapter_pboolean.c * psycopg/typecast_array.c (typecast_array_scan): set an initial 2008-01-13 16:05:59 +00:00
adapter_pboolean.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
adapter_qstring.c Add more const qualifiers. 2008-01-21 21:01:08 +00:00
adapter_qstring.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
config.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
connection_int.c * Add HIDDEN attribute to datetime related global variables. 2008-01-22 00:13:42 +00:00
connection_type.c Fix off-by-one error in PyMem_Malloc() call in 2008-02-13 16:01:10 +00:00
connection.h * psycopg/*.[ch]: add const qualifier to various string arguments 2008-01-21 17:34:08 +00:00
cursor_int.c Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
cursor_type.c Add more const qualifiers. 2008-01-21 21:01:08 +00:00
cursor.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
microprotocols_proto.c Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
microprotocols_proto.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
microprotocols.c Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
microprotocols.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
pgtypes.h Added aync.txt to distribution. 2005-11-29 12:01:46 +00:00
pgversion.h Initial psycopg 2 import after SVN crash. 2004-10-19 03:17:12 +00:00
pqpath.c 2008-03-07 Jason Erickson <jerickso@stickpeople.com> 2008-03-06 18:41:07 +00:00
pqpath.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
psycopg.h * psycopg/typecast.c (typecast_pydatetime): make array static. 2008-01-21 21:41:17 +00:00
psycopgmodule.c 2008-03-07 Jason Erickson <jerickso@stickpeople.com> 2008-03-06 16:15:41 +00:00
python.h Fixed both Python 2.5 and 64 bit problems. 2007-04-10 06:36:18 +00:00
typecast_array.c * psycopg/*.[ch]: add const qualifier to various string arguments 2008-01-21 17:34:08 +00:00
typecast_basic.c * psycopg/*.[ch]: add const qualifier to various string arguments 2008-01-21 17:34:08 +00:00
typecast_basic.c.old Initial psycopg 2 import after SVN crash. 2004-10-19 03:17:12 +00:00
typecast_binary.c * psycopg/*.[ch]: add const qualifier to various string arguments 2008-01-21 17:34:08 +00:00
typecast_binary.h * psycypg/*.h: apply HIDDEN to all global variables and functions 2008-01-21 05:54:01 +00:00
typecast_builtins.c * psycopg/typecast.c (typecast_pydatetime): make array static. 2008-01-21 21:41:17 +00:00
typecast_datetime.c * psycopg/typecast.c (typecast_parse_time): give the correct 2008-03-17 04:06:44 +00:00
typecast_mxdatetime.c * psycopg/typecast.c (typecast_parse_time): give the correct 2008-03-17 04:06:44 +00:00
typecast.c * psycopg/typecast.c (typecast_parse_time): give the correct 2008-03-17 04:06:44 +00:00
typecast.h * psycopg/*.[ch]: add const qualifier to various string arguments 2008-01-21 17:34:08 +00:00