diff options
author | Michele Calgaro <[email protected]> | 2024-10-17 17:11:53 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-10-29 21:58:43 +0900 |
commit | 40fbabf0fe3486a8e91f3caf2fbb40e341ba69aa (patch) | |
tree | 858bd532d394f08fe82b35ba2895a44501e16370 /src/backends/recipedb.cpp | |
parent | 54c9cce803be42c31e10d5865656cf8d38eb2ef6 (diff) | |
download | krecipes-40fbabf0fe3486a8e91f3caf2fbb40e341ba69aa.tar.gz krecipes-40fbabf0fe3486a8e91f3caf2fbb40e341ba69aa.zip |
Remove check for obsolete sqlite support. Check only for aqlite3
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit d572a3f536f3cb283303c161095c5e83d4dc27da)
Diffstat (limited to 'src/backends/recipedb.cpp')
-rw-r--r-- | src/backends/recipedb.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backends/recipedb.cpp b/src/backends/recipedb.cpp index fbc0ff4..ab540b7 100644 --- a/src/backends/recipedb.cpp +++ b/src/backends/recipedb.cpp @@ -46,7 +46,7 @@ #include "MySQL/mysqlrecipedb.h" #endif -#if HAVE_SQLITE || HAVE_SQLITE3 +#if HAVE_SQLITE3 #include "SQLite/literecipedb.h" #endif @@ -119,18 +119,18 @@ RecipeDB* RecipeDB::createDatabase( const TQString &dbType, const TQString &host if ( 0 ) ; //we need some condition here -#if HAVE_SQLITE || HAVE_SQLITE3 +#if HAVE_SQLITE3 else if ( dbType == "SQLite" ) { database = new LiteRecipeDB( file ); } -#endif //HAVE_SQLITE || HAVE_SQLITE3 - #if HAVE_MYSQL +#endif // HAVE_SQLITE3 +#if HAVE_MYSQL else if ( dbType == "MySQL" ) { database = new MySQLRecipeDB( host, user, pass, dbname, port ); } #endif //HAVE_MYSQL - #if HAVE_POSTGRESQL +#if HAVE_POSTGRESQL else if ( dbType == "PostgreSQL" ) { database = new PSqlRecipeDB( host, user, pass, dbname, port ); } |