select array exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pg8000 |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
"""
Table "company"
Column | Type | Modifiers
phone | character varying(150)[] | not null
...
"""
from pg8000 import DBAPI
conn = DBAPI.connect(
cursor = conn.cursor()
cursor.
for row in cursor:
print row
cursor.close()
conn.close()
Traceback (most recent call last):
File "test.py", line 14, in <module>
cursor.
File "build/
File "build/
File "build/
File "build/
File "build/
File "build/
File "build/
File "build/
File "build/
File "build/
File "build/
File "build/
struct.error: unpack requires a string argument of length 4
tags: | added: pg8000-1.08-py2.6.egg |
Changed in pg8000: | |
status: | New → Incomplete |
status: | Incomplete → Fix Committed |
I've made a maintenance fork:
http:// code.google. com/p/pg8000/
Could you test the latest version?
Several array issues were fixed.
If the error persist, please could you report it in the googlecode project issues?
(some data to build a unittest would be great)