psycopg2 array of composite

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yashar vasegh
    New Member
    • Mar 2011
    • 1

    psycopg2 array of composite

    hi, i need to insert into an array of composite type, i could do this with pgadmin, but i cant do it with psycopg2, would you please help me.

    create table new_type (
    a int,
    b int
    );

    create table second(
    agg new_type[ ]
    );

    how can i insert into second table by psycopg2??
Working...