On Fri Jul 03 19:03:07 2015, kes-kes@yandex.ru wrote:
Show quoted text
Actually this link is factually incorrect - most backends avoid using the direct call to DBI (
https://metacpan.org/pod/DBI#last_insert_id ). Instead depending on backend various ways exist ensuring that at least a PK will be retrieved on any ->insert() operation.
There is a (incomplete) mention of things here:
https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/Manual/Cookbook.pod#Getting-the-value-of-the-primary-key-for-the-last-database-insert
There is also a discussion of what "primary key" means in DBIC-terms here:
https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/Manual/Intro.pod#The-Significance-and-Importance-of-Primary-Keys
Lastly - there is a general guard ensuring that the PK is always present in some form:
https://metacpan.org/source/RIBASUSHI/DBIx-Class-0.082820/lib/DBIx/Class/Storage/DBI.pm#L1989-1997
Show quoted text> Also, I think you must have this link at ::Row documentation
Do you think you can come up with a patch that amalgamates all this info and puts it in some obvious places? Thanks in advance!