Jorge Godoy wrote:

>"jo" <[EMAIL PROTECTED]> writes:
>
>  
>
>>TG raises the following error:
>>
>>ArgumentError: Could not assemble any primary key columns for mapped
>>table 'provincia'
>>
>>The database model is published here: http://tg.pastebin.com/773831
>>    
>>
>
>What's the DDL for that table?
>  
>
PostgreSQL# \d provincia
        Table "public.provincia"
   Column    |     Type     | Modifiers
-------------+--------------+-----------
 codice      | character(3) | not null
 nome        | text         |
 cod_regione | text         |
 sigla       | character(2) |
 capoluogo   | boolean      |
 data_inizio | date         |
 data_fine   | date         |
 bdn_id      | integer      |
Indexes:
    "provincia_pkey" PRIMARY KEY, btree (codice)
    "provincia_idx" btree (bdn_id)
Check constraints:
    "provincia_check" CHECK (data_fine >= data_inizio AND data_fine <= 
'now'::text::date)
    "provincia_data_inizio_check" CHECK (data_inizio <= 'now'::text::date)
Foreign-key constraints:
    "provincia_cod_regione_fkey" FOREIGN KEY (cod_regione) REFERENCES 
regione(codice)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to turbogears@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to