From 6dfbd06e8f1a6170b8dd40be86a0f2ef87df56d1 Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Thu, 26 Jan 2023 15:34:18 +1000 Subject: [PATCH] [EC-1043] Fix syntax error in ReadKdfByEmail query (#2631) --- .../Stored Procedures/User_ReadKdfByEmail.sql | 2 +- ...Options.sql => 2023-01-15_00_KDFOptions.sql} | 0 .../2023-01-26_00_FixUserReadKdfByEmail.sql | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) rename util/Migrator/DbScripts/{2023_01-15_00_KDFOptions.sql => 2023-01-15_00_KDFOptions.sql} (100%) create mode 100644 util/Migrator/DbScripts/2023-01-26_00_FixUserReadKdfByEmail.sql diff --git a/src/Sql/dbo/Stored Procedures/User_ReadKdfByEmail.sql b/src/Sql/dbo/Stored Procedures/User_ReadKdfByEmail.sql index b5d3ee193c..ee0d87742e 100644 --- a/src/Sql/dbo/Stored Procedures/User_ReadKdfByEmail.sql +++ b/src/Sql/dbo/Stored Procedures/User_ReadKdfByEmail.sql @@ -6,7 +6,7 @@ BEGIN SELECT [Kdf], - [KdfIterations] + [KdfIterations], [KdfMemory], [KdfParallelism] FROM diff --git a/util/Migrator/DbScripts/2023_01-15_00_KDFOptions.sql b/util/Migrator/DbScripts/2023-01-15_00_KDFOptions.sql similarity index 100% rename from util/Migrator/DbScripts/2023_01-15_00_KDFOptions.sql rename to util/Migrator/DbScripts/2023-01-15_00_KDFOptions.sql diff --git a/util/Migrator/DbScripts/2023-01-26_00_FixUserReadKdfByEmail.sql b/util/Migrator/DbScripts/2023-01-26_00_FixUserReadKdfByEmail.sql new file mode 100644 index 0000000000..aab26759c4 --- /dev/null +++ b/util/Migrator/DbScripts/2023-01-26_00_FixUserReadKdfByEmail.sql @@ -0,0 +1,17 @@ +CREATE OR ALTER PROCEDURE [dbo].[User_ReadKdfByEmail] + @Email NVARCHAR(256) +AS +BEGIN + SET NOCOUNT ON + +SELECT + [Kdf], + [KdfIterations], + [KdfMemory], + [KdfParallelism] +FROM + [dbo].[User] +WHERE + [Email] = @Email +END +GO