mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-07 19:44:45 +02:00
- add SQLite FTS define to windows non-embedded testsuites
- remove POCO_DATA_SQLITE_FTS define from Config.h - add console message when FTS tests are no-op
This commit is contained in:
@@ -3287,11 +3287,9 @@ void SQLiteTest::testTransactor()
|
||||
}
|
||||
|
||||
|
||||
#ifdef POCO_DATA_SQLITE_FTS
|
||||
|
||||
|
||||
void SQLiteTest::testFTS3()
|
||||
{
|
||||
#ifdef SQLITE_ENABLE_FTS3
|
||||
Session session(Poco::Data::SQLite::Connector::KEY, "dummy.db");
|
||||
assert(session.isConnected());
|
||||
|
||||
@@ -3328,12 +3326,12 @@ void SQLiteTest::testFTS3()
|
||||
docid = 0;
|
||||
session << "SELECT count(*) FROM docs WHERE docs MATCH 'database and sqlite'", into(docid), now;
|
||||
assert(docid == 0);
|
||||
#else
|
||||
std::cout << "SQLite FTS not enabled, test not executed." << std::endl;
|
||||
#endif // SQLITE_ENABLE_FTS3
|
||||
}
|
||||
|
||||
|
||||
#endif // POCO_DATA_SQLITE_FTS
|
||||
|
||||
|
||||
void SQLiteTest::setUp()
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user