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:
parent
f46023f2f5
commit
9f919bbea9
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user