I am not able to print the object returned by sqlAlchemy in this
instance:
clients=Table('clients',metadata, autoload=True)
s = clients.select(clients.c.client_id==client_id)
#print str(s)
result = s.execute()
client = result.fetchone()
print client
The error:
Traceback (most recent call last):
File "db_interface/sqlAlchemyTest.py", line 61, in <module>
x=getClientData(1390)
File "db_interface/sqlAlchemyTest.py", line 46, in getClientData
print client
File "build/bdist.linux-i686/egg/sqlalchemy/engine/base.py", line
811, in __repr__
File "build/bdist.linux-i686/egg/sqlalchemy/engine/base.py", line
672, in _get_col
File "build/bdist.linux-i686/egg/sqlalchemy/databases/postgres.py",
line 81, in convert_result_value
IndexError: list index out of range
I'm using Postgresql 8.1.5 and Psycopg 1.99.13 (the latter is old, and
used intentionally).
Thank you,
~G~
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---