mirror of
https://github.com/bitwarden/server.git
synced 2024-12-23 17:07:42 +01:00
move Id assignment to after insert
This commit is contained in:
parent
f46023f2f5
commit
9f919bbea9
@ -8,7 +8,6 @@
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
SET @Id = SCOPE_IDENTITY();
|
||||
|
||||
INSERT INTO [dbo].[SsoConfig]
|
||||
(
|
||||
@ -28,4 +27,6 @@ BEGIN
|
||||
@CreationDate,
|
||||
@RevisionDate
|
||||
)
|
||||
|
||||
SET @Id = SCOPE_IDENTITY();
|
||||
END
|
||||
|
@ -43,7 +43,6 @@ CREATE PROCEDURE [dbo].[SsoConfig_Create]
|
||||
AS
|
||||
BEGIN
|
||||
SET NOCOUNT ON
|
||||
SET @Id = SCOPE_IDENTITY();
|
||||
|
||||
INSERT INTO [dbo].[SsoConfig]
|
||||
(
|
||||
@ -63,6 +62,8 @@ BEGIN
|
||||
@CreationDate,
|
||||
@RevisionDate
|
||||
)
|
||||
|
||||
SET @Id = SCOPE_IDENTITY();
|
||||
END
|
||||
GO
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user