1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-16 11:04:43 +02:00

SqlsrvDriver::getInsertId() last inserted id is from last statement instead of last inserted row regardless of the table that produced the value

This commit is contained in:
Mira Paulik
2016-02-29 15:54:52 +01:00
parent 352a683ec1
commit 43dccb1ba2
3 changed files with 34 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
IF OBJECT_ID('aaa', 'U') IS NOT NULL DROP TABLE aaa;
IF OBJECT_ID('aab', 'U') IS NOT NULL DROP TABLE aab;
CREATE TABLE aaa ( [id] int NOT NULL IDENTITY PRIMARY KEY )
CREATE TABLE aab ( [id] int NOT NULL IDENTITY PRIMARY KEY )