[Dbix-class] Compound keys?

Daniel Böhmer post at daniel-boehmer.de
Sat Jan 16 21:59:43 GMT 2021


Hi Александр,

well, if that’s what you meant, I can confirm that foreign keys
over 2 columns work fine.

Once you’ve got more details, please report what exactly
you’re doing with DBIC and what the actual problem is.

Good luck!

Daniel Böhmer


On 2021-01-16 22:49, Александр Поволоцкий wrote:
> I'll do more checks; for me... well, it can be compound key PLUS
> postgres database inheritance case!
> On 17.01.2021 0:19, Veesh Goldman wrote:
> 
>> Why do you think it doesn't handle compound keys? I assume that you
>> mean a primary key over multiple columns.
>> It works fine for me
>> 
>> On Sat, Jan 16, 2021, 21:16 Александр Поволоцкий
>> <tarkhil at over.ru> wrote:
>> 
>>> Hello
>>> 
>>> I'm working with Pg base with lots of compound keys.
>>> 
>>> As far as I understand, DBIx::Class is worse than can't handle
>>> compound
>>> keys, it fails silently, happliy returning the first component.
>>> 
>>> Did anyone have any ideas/tries on the subject?
>>> 
>>> --
>>> 
>>> Alex
>>> 
>>> _______________________________________________
>>> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
>>> IRC: irc.perl.org#dbix-class [1]
>>> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
>>> Searchable Archive:
>>> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>> 
>> _______________________________________________
>> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
>> IRC: irc.perl.org#dbix-class
>> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
>> Searchable Archive:
>> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
> 
> 
> Links:
> ------
> [1] http://irc.perl.org#dbix-class
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: 
> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk



More information about the DBIx-Class mailing list