comparison PostgreSQL/UnitTests/PostgreSQLTests.cpp @ 201:42990b2dd51b

create IDatabaseBackendOutput only if needed
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Mar 2021 16:51:51 +0100
parents 53bd9022c58b
children d9ef3f16e6a2
comparison
equal deleted inserted replaced
200:30b210616f4f 201:42990b2dd51b
444 444
445 445
446 #if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1 446 #if ORTHANC_PLUGINS_HAS_DATABASE_CONSTRAINT == 1
447 TEST(PostgreSQLIndex, CreateInstance) 447 TEST(PostgreSQLIndex, CreateInstance)
448 { 448 {
449 OrthancDatabases::PostgreSQLIndex db(globalParameters_); 449 OrthancDatabases::PostgreSQLIndex db(NULL, globalParameters_);
450 db.SetClearAll(true); 450 db.SetClearAll(true);
451 db.Open(); 451 db.Open();
452 452
453 std::string s; 453 std::string s;
454 ASSERT_TRUE(db.LookupGlobalProperty(s, Orthanc::GlobalProperty_DatabaseInternal1)); 454 ASSERT_TRUE(db.LookupGlobalProperty(s, Orthanc::GlobalProperty_DatabaseInternal1));