1
0
mirror of https://github.com/bitwarden/server.git synced 2025-01-11 20:10:38 +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 AS
BEGIN BEGIN
SET NOCOUNT ON SET NOCOUNT ON
SET @Id = SCOPE_IDENTITY();
INSERT INTO [dbo].[SsoConfig] INSERT INTO [dbo].[SsoConfig]
( (
@ -28,4 +27,6 @@ BEGIN
@CreationDate, @CreationDate,
@RevisionDate @RevisionDate
) )
SET @Id = SCOPE_IDENTITY();
END END

View File

@ -43,7 +43,6 @@ CREATE PROCEDURE [dbo].[SsoConfig_Create]
AS AS
BEGIN BEGIN
SET NOCOUNT ON SET NOCOUNT ON
SET @Id = SCOPE_IDENTITY();
INSERT INTO [dbo].[SsoConfig] INSERT INTO [dbo].[SsoConfig]
( (
@ -63,6 +62,8 @@ BEGIN
@CreationDate, @CreationDate,
@RevisionDate @RevisionDate
) )
SET @Id = SCOPE_IDENTITY();
END END
GO GO