[Zope3-checkins] CVS: Products3/pypgsqlda - adapter.py:1.5

Christian Theune ct@gocept.com
Tue, 18 Mar 2003 15:23:36 -0500


Update of /cvs-repository/Products3/pypgsqlda
In directory cvs.zope.org:/tmp/cvs-serv16442

Modified Files:
	adapter.py 
Log Message:
almost all targets for conversion identified


=== Products3/pypgsqlda/adapter.py 1.4 => 1.5 ===
--- Products3/pypgsqlda/adapter.py:1.4	Tue Mar 18 15:00:17 2003
+++ Products3/pypgsqlda/adapter.py	Tue Mar 18 15:23:35 2003
@@ -75,48 +75,48 @@
 # types from pypgsql/libpqmodule.c        
 converter_mapping = {
         'abstime' : debug,       # PG_ABSTIME           time 
-        'aclitem' : debug,       # PG_ACLITEM           unicode
+        'aclitem' : debug,       # PG_ACLITEM           unicode (sys)
         'blob' : debug,          # PG_BLOB              string
         'bool' : convertBool,          # PG_BOOL        boolean
         'box' : debug,           # PG_BOX               geometric.box
         'char' : debug,          # PG_BPCHAR            identity
-        'bytea' : debug,         # PG_BYTEA         
+        'bytea' : debug,         # PG_BYTEA             string
         'money' : debug,         # PG_CASH              float
-        'cid' : debug,           # PG_CID           
-        'cidr' : debug,          # PG_CIDR              
+        'cid' : debug,           # PG_CID               unicode (sys)
+        'cidr' : debug,          # PG_CIDR              unicode
         'circle' : debug,        # PG_CIRCLE            geometric.circle
         'date' : debug,          # PG_DATE              datetime.date
         'float4' : debug,        # PG_FLOAT4            float
         'float' : debug,         # PG_FLOAT8            float
         'inet' : debug,          # PG_INET              unicode 
         'int2' : debug,          # PG_INT2              integer
-        'int2vector' : debug,    # PG_INT2VECTOR        
+        'int2vector' : debug,    # PG_INT2VECTOR        unicode (sys)
         'integer' : debug,       # PG_INT4              integer
         'bigint' : debug,        # PG_INT8              longint
         'interval' : convertInterval,   # PG_INTERVAL   datetime.delta
         'line' : debug,          # PG_LINE              geometric.line
         'lseg' : debug,          # PG_LSEG              geometric.linesegment
         'macaddr' : debug,       # PG_MACADDR           unicode
-        'name' : debug,          # PG_NAME              
+        'name' : debug,          # PG_NAME              unicode
         'numeric' : debug,       # PG_NUMERIC           float
-        'oid' : debug,           # PG_OID               
-        'oidvector' : debug,     # PG_OIDVECTOR
+        'oid' : debug,           # PG_OID               unicode (sys)
+        'oidvector' : debug,     # PG_OIDVECTOR         unicode (sys)
         'path' : debug,          # PG_PATH              geometric.path
         'point' : debug,         # PG_POINT             geometric.point
         'polygon' : debug,       # PG_POLYGON           geometric.polygon
-        'refcursor' : debug,     # PG_REFCURSOR         
-        'regproc' : debug,       # PG_REGPROC
-        'reltime' : debug,       # PG_RELTIME           
-        'rowid' : debug,         # PG_ROWID
-        'text' : debug,          # PG_TEXT              unicode
-        'tid' : debug,           # PG_TID               
+        'refcursor' : debug,     # PG_REFCURSOR         unicode (sys)
+        'regproc' : debug,       # PG_REGPROC           unicode (sys)
+        'reltime' : debug,       # PG_RELTIME           datetime.delta
+        'rowid' : debug,         # PG_ROWID             longint 
+        'text' : debug,          # PG_TEXT              unicode 
+        'tid' : debug,           # PG_TID               unicode (sys)
         'time' : debug,          # PG_TIME              datetime.time
         'timestamp' : debug,     # PG_TIMESTAMP         datetime.datetime
         'timestamptz' : debug,   # PG_TIMESTAMPTZ       datetime.datetime
         'tinterval' : debug,     # PG_TINTERVAL         datetime.delta
-        'unknown' : debug,       # PG_UNKNOWN           
-        'varbit' : debug,        # PG_VARBIT            
+        'unknown' : debug,       # PG_UNKNOWN           unicode (sys)
+        'varbit' : debug,        # PG_VARBIT            XXX
         'varchar' : debug,       # PG_VARCHAR           unicode
-        'xid' : debug,           # PG_XID
-        'zpbit' : debug          # PG_ZPBIT
+        'xid' : debug,           # PG_XID               unicode (sys)
+        'zpbit' : debug          # PG_ZPBIT             identity XXX debug this 
     }