1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-24 17:17:40 +01:00

move Id assignment to after insert

This commit is contained in:
Matt Portune 2020-06-25 18:28:08 -04:00
parent f46023f2f5
commit 9f919bbea9
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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