Skip to content

Commit 2fcfc1a

Browse files
committed
[release-1.12] Fixup from dapr#3272: support case-sensitive SERVER collation (dapr#3276)
Signed-off-by: ItalyPaleAle <[email protected]>
1 parent 323e9bf commit 2fcfc1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

state/sqlserver/migration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ func (m *migration) ensureUpsertStoredProcedureExists(ctx context.Context, db *s
289289
IF (@RowVersion IS NOT NULL)
290290
BEGIN
291291
BEGIN TRANSACTION;
292-
IF NOT EXISTS (SELECT * FROM [%[3]s] WHERE [Key]=@KEY AND RowVersion = @RowVersion)
292+
IF NOT EXISTS (SELECT * FROM [%[3]s] WHERE [Key]=@Key AND RowVersion = @RowVersion)
293293
BEGIN
294294
THROW 2601, ''FIRST-WRITE: COMPETING RECORD ALREADY WRITTEN.'', 1
295295
END
@@ -303,7 +303,7 @@ func (m *migration) ensureUpsertStoredProcedureExists(ctx context.Context, db *s
303303
ELSE
304304
BEGIN
305305
BEGIN TRANSACTION;
306-
IF EXISTS (SELECT * FROM [%[3]s] WHERE [Key]=@KEY)
306+
IF EXISTS (SELECT * FROM [%[3]s] WHERE [Key]=@Key)
307307
BEGIN
308308
THROW 2601, ''FIRST-WRITE: COMPETING RECORD ALREADY WRITTEN.'', 1
309309
END

0 commit comments

Comments
 (0)