Handle postgresql and sqlite3 libs properly
Do not fail to compile when one of them is missing but the other one is not. Raise an error when trying to open a database with the missing library. see #3237
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
#include <biboumi.h>
|
||||
|
||||
#ifdef SQLITE3_FOUND
|
||||
|
||||
#include <database/sqlite3_engine.hpp>
|
||||
|
||||
#include <database/sqlite3_statement.hpp>
|
||||
@@ -91,3 +95,5 @@ std::string Sqlite3Engine::id_column_type()
|
||||
{
|
||||
return "INTEGER PRIMARY KEY AUTOINCREMENT";
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user