Skip to content

Commit 5ab1b4c

Browse files
committed
Choosing the right query when selecting. Issue dotnet/extensions#1268
\n\nCommit migrated from dotnet/extensions@4bead49
1 parent 1cd4d38 commit 5ab1b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Caching/SqlServer/src/MonoDatabaseOperations.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ protected override byte[] GetCacheItem(string key, bool includeValue)
8080
byte[] value = null;
8181
using (var connection = new SqlConnection(ConnectionString))
8282
{
83-
var command = new SqlCommand(SqlQueries.GetCacheItem, connection);
83+
var command = new SqlCommand(query, connection);
8484
command.Parameters
8585
.AddCacheItemId(key)
8686
.AddWithValue("UtcNow", SqlDbType.DateTime, utcNow.UtcDateTime);

0 commit comments

Comments
 (0)