Skip to content

Commit

Permalink
tom bugfix missing defined
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Apr 23, 2024
1 parent 6e79272 commit 2e88965
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions examples/tom/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ std::shared_ptr<DatabaseManager> 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},
Expand Down Expand Up @@ -122,7 +122,7 @@ std::shared_ptr<DatabaseManager> 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},
Expand Down Expand Up @@ -157,7 +157,7 @@ std::shared_ptr<DatabaseManager> 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},
Expand Down
6 changes: 3 additions & 3 deletions tests/testdata_tom/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ std::shared_ptr<DatabaseManager> 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},
Expand Down Expand Up @@ -137,7 +137,7 @@ std::shared_ptr<DatabaseManager> 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},
Expand All @@ -163,7 +163,7 @@ std::shared_ptr<DatabaseManager> 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},
Expand Down

0 comments on commit 2e88965

Please sign in to comment.