Re: flexi adaption/casting scheme

From: Tobias Oberstein <tobias(dot)oberstein(at)gmail(dot)com>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: psycopg(at)postgresql(dot)org
Subject: Re: flexi adaption/casting scheme
Date: 2012-09-21 15:13:38
Message-ID: 505C8422.5060107@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse psycopg by date

  From Date Subject
Next Message Daniele Varrazzo 2012-09-21 16:04:01 Re: flexi adaption/casting scheme
Previous Message Tobias Oberstein 2012-09-21 14:14:54 Re: flexi adaption/casting scheme