From 32b22ae8e527503beccf1878d5ed02ed8f743d0c Mon Sep 17 00:00:00 2001 From: David Moore Date: Mon, 22 Feb 2021 19:58:30 +1300 Subject: [PATCH] Adding PostgreSQL 8.3 dialect --- .../Cfg/Db/PostgreSQLConfigurationTester.cs | 7 +++++++ src/FluentNHibernate/Cfg/Db/PostgreSQLConfiguration.cs | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/src/FluentNHibernate.Testing/Cfg/Db/PostgreSQLConfigurationTester.cs b/src/FluentNHibernate.Testing/Cfg/Db/PostgreSQLConfigurationTester.cs index e2adb6dcd..bf9eaee7d 100644 --- a/src/FluentNHibernate.Testing/Cfg/Db/PostgreSQLConfigurationTester.cs +++ b/src/FluentNHibernate.Testing/Cfg/Db/PostgreSQLConfigurationTester.cs @@ -35,6 +35,13 @@ public void PostgreSQL_82_should_set_the_correct_dialect() "NHibernate.Dialect.PostgreSQL82Dialect, " + typeof(ISession).Assembly.FullName); } + [Test] + public void PostgreSQL_83_should_set_the_correct_dialect() + { + PostgreSQLConfiguration.PostgreSQL83.ToProperties()["dialect"].ShouldEqual( + "NHibernate.Dialect.PostgreSQL83Dialect, " + typeof(ISession).Assembly.FullName); + } + [Test] public void ConnectionString_is_added_to_the_configuration() { diff --git a/src/FluentNHibernate/Cfg/Db/PostgreSQLConfiguration.cs b/src/FluentNHibernate/Cfg/Db/PostgreSQLConfiguration.cs index 7c634ab16..bc3f052d2 100644 --- a/src/FluentNHibernate/Cfg/Db/PostgreSQLConfiguration.cs +++ b/src/FluentNHibernate/Cfg/Db/PostgreSQLConfiguration.cs @@ -24,5 +24,10 @@ public static PostgreSQLConfiguration PostgreSQL82 { get { return new PostgreSQLConfiguration().Dialect(); } } + + public static PostgreSQLConfiguration PostgreSQL83 + { + get { return new PostgreSQLConfiguration().Dialect(); } + } } } \ No newline at end of file