diff --git a/lib/extensions.py b/lib/extensions.py index 99c72013..4966eae3 100644 --- a/lib/extensions.py +++ b/lib/extensions.py @@ -26,6 +26,10 @@ This module holds all the extensions to the DBAPI-2.0 provided by psycopg. from _psycopg import UNICODE, INTEGER, LONGINTEGER, BOOLEAN, FLOAT from _psycopg import TIME, DATE, INTERVAL +from _psycopg import BINARYARRAY, BOOLEANARRAY, DATEARRAY, DATETIMEARRAY +from _psycopg import DECIMALARRAY, FLOATARRAY, INTEGERARRAY, INTERVALARRAY +from _psycopg import LONGINTEGERARRAY, ROWIDARRAY, STRINGARRAY, TIMEARRAY +from _psycopg import UNICODEARRAY from _psycopg import Boolean, QuotedString, AsIs try: diff --git a/psycopg/pqpath.c b/psycopg/pqpath.c index bf8fdf28..8b6633b3 100644 --- a/psycopg/pqpath.c +++ b/psycopg/pqpath.c @@ -160,7 +160,6 @@ pq_raise(connectionObject *conn, cursorObject *curs, PGresult *pgres) /* if the connection has somehow beed broken, we mark the connection object as closed but requiring cleanup */ - Dprintf("%d %d", PQtransactionStatus(conn->pgconn), PQstatus(conn->pgconn)); if (conn->pgconn != NULL && PQstatus(conn->pgconn) == CONNECTION_BAD) conn->closed = 2; diff --git a/psycopg2da/adapter.py b/psycopg2da/adapter.py index 6c912060..68b3a427 100644 --- a/psycopg2da/adapter.py +++ b/psycopg2da/adapter.py @@ -309,6 +309,7 @@ def registerTypes(encoding): psycopg2.extensions.register_type(INTERVAL) STRING = psycopg2.extensions.new_type((CHAR_OID, TEXT_OID, BPCHAR_OID, VARCHAR_OID), "ZSTRING", _get_string_conv(encoding)) psycopg2.extensions.register_type(STRING) + psycopg2.extensions.register_type(psycopg2.extensions.UNICODEARRAY) dsn2option_mapping = {'host': 'host',