diff options
author | Federico Di Gregorio <fog@initd.org> | 2005-11-29 12:01:46 +0000 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2005-11-29 12:01:46 +0000 |
commit | 3937ea3ece11e5b1f38a24f119bc16e40530d886 (patch) | |
tree | 67acdebe480a783660e935b9949cd41a39dfb16d | |
parent | 4261bc33713a9aa1931d366377bc518da60dd5d2 (diff) | |
download | psycopg2-3937ea3ece11e5b1f38a24f119bc16e40530d886.tar.gz |
Added aync.txt to distribution.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | MANIFEST.in | 2 | ||||
-rw-r--r-- | doc/async.txt | 2 | ||||
-rw-r--r-- | psycopg/pgtypes.h | 5 | ||||
-rw-r--r-- | psycopg/typecast_builtins.c | 4 | ||||
-rw-r--r-- | scripts/maketypes.sh | 5 |
6 files changed, 15 insertions, 7 deletions
@@ -1,3 +1,7 @@ +2005-11-29 Federico Di Gregorio <fog@initd.org> + + * MANIFEST.in: added docs/async.txt. (Closes: #75) + 2005-11-26 Daniele Varrazzo <daniele.varrazzo@gmail.com> * psycopg/psycopgmodule.c: fixed exceptions refcount. diff --git a/MANIFEST.in b/MANIFEST.in index b829bb4..bba1924 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 9c6afaf..518d5fe 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 968b062..1fdbda9 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 0fc109d..e0481a4 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 3ce5a62..ab133c1 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" + |