You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if DBD::Pg supports and implement this method.
Difference between $dbh->last_insert_id and $sth->last_insert_id is that $dbh's one returns last global insert id and $sth's one returns insert id for the last executed query by $sth.
The text was updated successfully, but these errors were encountered:
Given the way that DBD::Pg interacts between $sth and $dbh, I don't see a way to make $sth->last_insert_id different from $dbh->last_insert_id. But maybe that's ok. I added some tests for $sth->last_insert_id in 2b11c6d
If you can think of a way to differentiate the two, please update this issue.
DBI API since version 1.642 has support for
last_insert_id
also for statement handle (not only database handle), see: https://metacpan.org/pod/DBI#last_insert_id1It would be nice if DBD::Pg supports and implement this method.
Difference between
$dbh->last_insert_id
and$sth->last_insert_id
is that$dbh
's one returns last global insert id and$sth
's one returns insert id for the last executed query by$sth
.The text was updated successfully, but these errors were encountered: