diff --git a/ChangeLog b/ChangeLog index c09fdacd..20a66ceb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-11-29 Federico Di Gregorio + + * MANIFEST.in: added docs/async.txt. (Closes: #75) + 2005-11-26 Daniele Varrazzo * psycopg/psycopgmodule.c: fixed exceptions refcount. diff --git a/MANIFEST.in b/MANIFEST.in index b829bb41..bba19240 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -4,7 +4,7 @@ recursive-include tests *.py recursive-include ZPsycopgDA *.py *.gif *.dtml recursive-include examples *.py somehackers.jpg whereareyou.jpg recursive-include debian * -recursive-include doc TODO HACKING SUCCESS ChangeLog-1.x +recursive-include doc TODO HACKING SUCCESS ChangeLog-1.x async.txt recursive-include scripts *.py *.sh include scripts/maketypes.sh scripts/buildtypes.py include AUTHORS README INSTALL ChangeLog diff --git a/doc/async.txt b/doc/async.txt index 9c6afafb..518d5fe2 100644 --- a/doc/async.txt +++ b/doc/async.txt @@ -1,6 +1,8 @@ psycopg asynchronous API ************************ +** Important: async quaeries are not enabled for 2.0 ** + Program code can initiate an asynchronous query by passing an 'async=1' flag to the .execute() method. A very simple example, from the connection to the query: diff --git a/psycopg/pgtypes.h b/psycopg/pgtypes.h index 968b0626..1fdbda9a 100644 --- a/psycopg/pgtypes.h +++ b/psycopg/pgtypes.h @@ -13,6 +13,10 @@ #define XIDOID 28 #define CIDOID 29 #define OIDVECTOROID 30 +#define PG_TYPE_RELTYPE_OID 71 +#define PG_ATTRIBUTE_RELTYPE_OID 75 +#define PG_PROC_RELTYPE_OID 81 +#define PG_CLASS_RELTYPE_OID 83 #define POINTOID 600 #define LSEGOID 601 #define PATHOID 602 @@ -30,6 +34,7 @@ #define MACADDROID 829 #define INETOID 869 #define CIDROID 650 +#define INT4ARRAYOID 1007 #define ACLITEMOID 1033 #define BPCHAROID 1042 #define VARCHAROID 1043 diff --git a/psycopg/typecast_builtins.c b/psycopg/typecast_builtins.c index 0fc109d8..e0481a41 100644 --- a/psycopg/typecast_builtins.c +++ b/psycopg/typecast_builtins.c @@ -16,8 +16,8 @@ static long int typecast_LONGINTEGERARRAY_types[] = {1016, 0}; static long int typecast_INTEGERARRAY_types[] = {1005, 1006, 1007, 0}; static long int typecast_FLOATARRAY_types[] = {1017, 1021, 1022, 0}; static long int typecast_DECIMALARRAY_types[] = {1231, 0}; -static long int typecast_UNICODEARRAY_types[] = {1002, 1003, 1009, 1014, 1015, 0}; -static long int typecast_STRINGARRAY_types[] = {1002, 1003, 1009, 1014, 1015, 0}; +static long int typecast_UNICODEARRAY_types[] = {705, 1002, 1003, 1009, 1014, 1015, 0}; +static long int typecast_STRINGARRAY_types[] = {705, 1002, 1003, 1009, 1014, 1015, 0}; static long int typecast_BOOLEANARRAY_types[] = {1000, 0}; static long int typecast_DATETIMEARRAY_types[] = {1115, 1185, 0}; static long int typecast_TIMEARRAY_types[] = {1183, 1270, 0}; diff --git a/scripts/maketypes.sh b/scripts/maketypes.sh index 3ce5a625..ab133c17 100644 --- a/scripts/maketypes.sh +++ b/scripts/maketypes.sh @@ -37,8 +37,5 @@ echo -n generating typecast_builtins.c ... awk '/#define .+OID/ {print $2 " " $3}' "$PGTYPE" | \ python $SCRIPTSDIR/buildtypes.py >$SRCDIR/typecast_builtins.c echo " done" -#echo -n generating pgversion.h ... -#echo "#define PG_VERSION_MAJOR $PGMAJOR" >$SRCDIR/pgversion.h -#echo "#define PG_VERSION_MINOR $PGMINOR" >>$SRCDIR/pgversion.h -#echo " done" +