]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[github21] Compilation fix (PG versions constants updated in tests)
authorTomek Mrugalski <tomasz@isc.org>
Thu, 23 Jun 2016 11:04:54 +0000 (13:04 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Thu, 23 Jun 2016 12:39:03 +0000 (14:39 +0200)
src/lib/dhcpsrv/pgsql_lease_mgr.h
src/lib/dhcpsrv/tests/pgsql_lease_mgr_unittest.cc

index e871b90c0f50de75369825b060dc1ee866514382..d316f1b9f0b5f94701f5349ce17e52c39eee68ce 100644 (file)
@@ -25,7 +25,7 @@ namespace dhcp {
 class PgSqlLease4Exchange;
 class PgSqlLease6Exchange;
 
-/// Defines PostgreSQL backend version: 2.0
+/// Defines PostgreSQL backend version: 3.0
 const uint32_t PG_CURRENT_VERSION = 3;
 const uint32_t PG_CURRENT_MINOR = 0;
 
index d44d5dff353b393f46c609e5f3084d36c5d76941..92348818639d09146139603a8d7ce743326dfec2 100755 (executable)
@@ -190,8 +190,8 @@ TEST_F(PgSqlLeaseMgrTest, checkVersion) {
     // Check version
     pair<uint32_t, uint32_t> version;
     ASSERT_NO_THROW(version = lmptr_->getVersion());
-    EXPECT_EQ(PG_SCHEMA_VERSION_MAJOR, version.first);
-    EXPECT_EQ(PG_SCHEMA_VERSION_MINOR, version.second);
+    EXPECT_EQ(PG_CURRENT_VERSION, version.first);
+    EXPECT_EQ(PG_CURRENT_MINOR, version.second);
 }
 
 ////////////////////////////////////////////////////////////////////////////////