Skip to content

Commit 32ac979

Browse files
committed
Version 5.2.2 - fixes issue #48
1 parent 994cc0a commit 32ac979

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# EfCore.TestSupport
22

3-
This NuGet package containing methods to help test applications that use [Entity Framework Core](https://docs.microsoft.com/en-us/ef/core/index) for database access using SQL Server, PostgreSQL, Cosmos DB, and for generic tests of any database type an in-memory SQLite approach. This readme provides links to the documentation in the [EfCore.TestSupport wiki](https://github.com/JonPSmith/EfCore.TestSupport/wiki). Also see [Release Notes](https://github.com/JonPSmith/EfCore.TestSupport/blob/master/ReleaseNotes.md) for information on changes.
3+
This NuGet package containing methods to help test applications that use [Entity Framework Core](https://docs.microsoft.com/en-us/ef/core/index) for database access using SQL Server, PostgreSQL, Cosmos DB, and a generic in-memory SQLite approach which works with every EF Core database provider (with limitations). This readme provides links to the documentation in the [EfCore.TestSupport wiki](https://github.com/JonPSmith/EfCore.TestSupport/wiki). Also see [Release Notes](https://github.com/JonPSmith/EfCore.TestSupport/blob/master/ReleaseNotes.md) for information on changes.
44

55
The EfCore.TestSupport library is available on [NuGet as EfCore.TestSupport](https://www.nuget.org/packages/EfCore.TestSupport/) and is an open-source library under the MIT license. See [ReleaseNotes](https://github.com/JonPSmith/EfCore.TestSupport/blob/master/ReleaseNotes.md) for details of the changes in each vesion.
66

ReleaseNotes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Release notes
22

3+
## 5.2.2
4+
5+
- Bug Fix: Use 'current_user' instead of 'postgres' in PostgreSQL version of EnsureClean - see issue #48
6+
37
## 5.2.1
48

59
- Bug Fix: PostgreSQL EnsureClean had a memory leak - now fixed
610

7-
811
## 5.2.0
912

1013
- BREAKING CHANGE from 5.1.0: changed `CreatePostgreSqlUniqueDatabaseOptions` to `CreatePostgreSqlUniqueClassOptions` to match other usages

TestSupport/EfHelpers/Internal/PostgreSqlDropSchemaEnsureClean.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ FOR r IN (SELECT nspname FROM pg_namespace WHERE nspname NOT IN ('pg_toast', 'pg
3333
LOOP
3434
EXECUTE 'DROP SCHEMA ' || quote_ident(r.nspname) || ' CASCADE';
3535
END LOOP;
36-
EXECUTE 'CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO postgres; GRANT ALL ON SCHEMA public TO public';
36+
EXECUTE 'CREATE SCHEMA public; GRANT ALL ON SCHEMA public TO current_user; GRANT ALL ON SCHEMA public TO public';
3737
END $$"
3838
};
3939
dropPublicSchemaCommand.ExecuteNonQuery();

TestSupport/TestSupport.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@
4343

4444
<PropertyGroup>
4545
<PackageId>EfCore.TestSupport</PackageId>
46-
<PackageVersion>5.2.1</PackageVersion>
47-
<Version>5.2.1</Version>
48-
<AssemblyVersion>5.2.1.0</AssemblyVersion>
49-
<FileVersion>5.2.1.0</FileVersion>
46+
<PackageVersion>5.2.2</PackageVersion>
47+
<Version>5.2.2</Version>
48+
<AssemblyVersion>5.2.2.0</AssemblyVersion>
49+
<FileVersion>5.2.2.0</FileVersion>
5050
<Authors>Jon P Smith</Authors>
5151
<Description>Useful tools when unit testing applications that use Entity Framework Core. See readme file on github.</Description>
5252
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
5353
<PackageReleaseNotes>
54-
- Bug Fix: PostgreSQL EnsureClean had a memory leak - now fixed
54+
- Bug Fix: Use 'current_user' instead of 'postgres' in PostgreSQL version of EnsureClean - see issue #48
5555
</PackageReleaseNotes>
5656
<Copyright>Copyright (c) 2020 Jon P Smith. Licenced under MIT licence</Copyright>
5757
<PackageTags>Entity Framework Core, xUnit</PackageTags>

0 commit comments

Comments
 (0)