From 2e889651591dcb80a8feaaa1f0bfcd89059443e6 Mon Sep 17 00:00:00 2001 From: silverqx Date: Tue, 23 Apr 2024 18:04:41 +0200 Subject: [PATCH] tom bugfix missing defined --- examples/tom/main.cpp | 6 +++--- tests/testdata_tom/main.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/tom/main.cpp b/examples/tom/main.cpp index 013e3cc3a..fcf916f74 100644 --- a/examples/tom/main.cpp +++ b/examples/tom/main.cpp @@ -70,7 +70,7 @@ std::shared_ptr setupDatabaseManager() // Ownership of the shared_ptr() return DB::create({ -#if !PROJECT_TINYDRIVERS || TINYDRIVERS_MYSQL_DRIVER +#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_MYSQL_DRIVER) // MySQL connection {QStringLiteral("tinyorm_tom_mysql"), { // shell:connection {driver_, QMYSQL}, @@ -122,7 +122,7 @@ std::shared_ptr setupDatabaseManager() {options_, ConfigUtils::mariaSslOptions()}, }}, #endif -#if !PROJECT_TINYDRIVERS || TINYDRIVERS_PSQL_DRIVER +#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_PSQL_DRIVER) // PostgreSQL connection {QStringLiteral("tinyorm_tom_postgres"), { // shell:connection {driver_, QPSQL}, @@ -157,7 +157,7 @@ std::shared_ptr setupDatabaseManager() {options_, ConfigUtils::postgresSslOptions()}, }}, #endif -#if !PROJECT_TINYDRIVERS || TINYDRIVERS_SQLITE_DRIVER +#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_SQLITE_DRIVER) // SQLite connection {QStringLiteral("tinyorm_tom_sqlite"), { // shell:connection {driver_, QSQLITE}, diff --git a/tests/testdata_tom/main.cpp b/tests/testdata_tom/main.cpp index 4f96f3b07..cf61d03b8 100644 --- a/tests/testdata_tom/main.cpp +++ b/tests/testdata_tom/main.cpp @@ -86,7 +86,7 @@ std::shared_ptr setupDatabaseManager() // Ownership of the shared_ptr() return DB::create({ -#if !PROJECT_TINYDRIVERS || TINYDRIVERS_MYSQL_DRIVER +#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_MYSQL_DRIVER) // MySQL connection {sl("tinyorm_testdata_tom_mysql"), { // shell:connection {driver_, QMYSQL}, @@ -137,7 +137,7 @@ std::shared_ptr setupDatabaseManager() {options_, ConfigUtils::mariaSslOptions()}, }}, #endif -#if !PROJECT_TINYDRIVERS || TINYDRIVERS_PSQL_DRIVER +#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_PSQL_DRIVER) // PostgreSQL connection {sl("tinyorm_testdata_tom_postgres"), { // shell:connection {driver_, QPSQL}, @@ -163,7 +163,7 @@ std::shared_ptr setupDatabaseManager() {options_, ConfigUtils::postgresSslOptions()}, }}, #endif -#if !PROJECT_TINYDRIVERS || TINYDRIVERS_SQLITE_DRIVER +#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_SQLITE_DRIVER) // SQLite connection {sl("tinyorm_testdata_tom_sqlite"), { // shell:connection {driver_, QSQLITE},