Skip to content

Commit 87ec181

Browse files
committed
Fix issue #1
1 parent f8ccb14 commit 87ec181

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Extensions.Caching.PostgreSql/Community.Microsoft.Extensions.Caching.PostgreSql.csproj

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@
44
<AssemblyName>Community.Microsoft.Extensions.Caching.PostgreSql</AssemblyName>
55
<RootNamespace>Community.Microsoft.Extensions.Caching.PostgreSql</RootNamespace>
66
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
7-
<Version>1.0.5</Version>
7+
<Version>1.0.6</Version>
88
<Authors>Ashley Marques</Authors>
99
<Company />
1010
<Description>DistributedCache using postgres</Description>
11-
<PackageReleaseNotes>Dependencies updates to the latest
12-
Readme update
13-
Github keys to publish artifacts</PackageReleaseNotes>
11+
<PackageReleaseNotes>Issue #1 fixed.</PackageReleaseNotes>
1412
<PackageProjectUrl>https://github.com/leonibr/community-extensions-cache-postgres</PackageProjectUrl>
1513
<RepositoryUrl>https://github.com/leonibr/community-extensions-cache-postgres.git</RepositoryUrl>
1614
<RepositoryType>Github</RepositoryType>

Extensions.Caching.PostgreSql/DatabaseOperations.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@ protected virtual byte[] GetCacheItem(string key, bool includeValue)
291291

292292
if (includeValue)
293293
{
294-
command = new NpgsqlCommand(Functions.Names.GetCacheItemFormat, connection);
295-
command.CommandType = CommandType.StoredProcedure;
294+
command = new NpgsqlCommand($"{SchemaName}.{Functions.Names.GetCacheItemFormat}", connection);
295+
command.CommandType = CommandType.StoredProcedure;
296296
command.Parameters
297297
.AddParamWithValue("SchemaName", NpgsqlTypes.NpgsqlDbType.Text, SchemaName)
298298
.AddParamWithValue("TableName", NpgsqlTypes.NpgsqlDbType.Text, TableName)

0 commit comments

Comments
 (0)