psycopg1 isnt really supported.

On Feb 27, 2007, at 3:54 PM, Gloria wrote:

>
> 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 sqlalchemy@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to