[Dbix-class] PostgreSQL, new_related and belongs_to relationships

Peter Rabbitson rabbit+dbic at rabbit.us
Fri Apr 8 15:50:30 GMT 2011


Peter Shangov wrote:
> Hi, 
> 
> I can’t get $row->new_related(‘some_belongs_to_rel’, \%values) to work with PostgreSQL. DBIC tries to insert a new row with a NULL for the primary key, which works with some databases, but not with PostgreSQL. Here is a test file that demonstrates the issue (it will not fail with SQLite):
> 
> https://gist.github.com/909809
> 
> Probably this is a known issue, I just wanted to check if there is something I am missing …
> 

Which version of DBIC?



More information about the DBIx-Class mailing list