Skip to content

Commit 2e88965

Browse files
committed
tom bugfix missing defined
1 parent 6e79272 commit 2e88965

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/tom/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
7070

7171
// Ownership of the shared_ptr()
7272
return DB::create({
73-
#if !PROJECT_TINYDRIVERS || TINYDRIVERS_MYSQL_DRIVER
73+
#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_MYSQL_DRIVER)
7474
// MySQL connection
7575
{QStringLiteral("tinyorm_tom_mysql"), { // shell:connection
7676
{driver_, QMYSQL},
@@ -122,7 +122,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
122122
{options_, ConfigUtils::mariaSslOptions()},
123123
}},
124124
#endif
125-
#if !PROJECT_TINYDRIVERS || TINYDRIVERS_PSQL_DRIVER
125+
#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_PSQL_DRIVER)
126126
// PostgreSQL connection
127127
{QStringLiteral("tinyorm_tom_postgres"), { // shell:connection
128128
{driver_, QPSQL},
@@ -157,7 +157,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
157157
{options_, ConfigUtils::postgresSslOptions()},
158158
}},
159159
#endif
160-
#if !PROJECT_TINYDRIVERS || TINYDRIVERS_SQLITE_DRIVER
160+
#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_SQLITE_DRIVER)
161161
// SQLite connection
162162
{QStringLiteral("tinyorm_tom_sqlite"), { // shell:connection
163163
{driver_, QSQLITE},

tests/testdata_tom/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
8686

8787
// Ownership of the shared_ptr()
8888
return DB::create({
89-
#if !PROJECT_TINYDRIVERS || TINYDRIVERS_MYSQL_DRIVER
89+
#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_MYSQL_DRIVER)
9090
// MySQL connection
9191
{sl("tinyorm_testdata_tom_mysql"), { // shell:connection
9292
{driver_, QMYSQL},
@@ -137,7 +137,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
137137
{options_, ConfigUtils::mariaSslOptions()},
138138
}},
139139
#endif
140-
#if !PROJECT_TINYDRIVERS || TINYDRIVERS_PSQL_DRIVER
140+
#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_PSQL_DRIVER)
141141
// PostgreSQL connection
142142
{sl("tinyorm_testdata_tom_postgres"), { // shell:connection
143143
{driver_, QPSQL},
@@ -163,7 +163,7 @@ std::shared_ptr<DatabaseManager> setupDatabaseManager()
163163
{options_, ConfigUtils::postgresSslOptions()},
164164
}},
165165
#endif
166-
#if !PROJECT_TINYDRIVERS || TINYDRIVERS_SQLITE_DRIVER
166+
#if !defined(PROJECT_TINYDRIVERS) || defined(TINYDRIVERS_SQLITE_DRIVER)
167167
// SQLite connection
168168
{sl("tinyorm_testdata_tom_sqlite"), { // shell:connection
169169
{driver_, QSQLITE},

0 commit comments

Comments
 (0)