Re: flexi adaption/casting scheme - Mailing list psycopg

From Tobias Oberstein
Subject Re: flexi adaption/casting scheme
Date
Msg-id 505C8422.5060107@gmail.com
Whole thread Raw
In response to Re: flexi adaption/casting scheme  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
Could someone help me out: whats wrong with this short snippet?

https://github.com/oberstet/scratchbox/blob/master/python/psycopg2/test7.py


Traceback (most recent call last):
   File "test7.py", line 29, in <module>
     cur.execute("SELECT test_employee(%s)", [v1])
psycopg2.ProgrammingError: cannot cast type record to t_address
LINE 1: ...4, ARRAY[1, 2, 3], NULL, ('Duckhausen', NULL, 18, ARRAY[(10,...
                                                              ^
DETAIL:  Cannot cast type record[] to t_station[] in column 4.

Thanks alot,
Tobias


psycopg by date:

Previous
From: Tobias Oberstein
Date:
Subject: Re: flexi adaption/casting scheme
Next
From: Daniele Varrazzo
Date:
Subject: Re: flexi adaption/casting scheme