diff options
author | louiz’ <louiz@louiz.org> | 2018-04-24 19:19:06 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-04-24 20:25:40 +0200 |
commit | 61de6b1dac4ef29627f3bdb9ce11b6c0d06f4a24 (patch) | |
tree | f1da873798506627587ef7cdce23062d556b454a /src/database/select_query.cpp | |
parent | a90f196a1ce779d502baf0aadff6e6917fec8a02 (diff) | |
download | biboumi-61de6b1dac4ef29627f3bdb9ce11b6c0d06f4a24.tar.gz biboumi-61de6b1dac4ef29627f3bdb9ce11b6c0d06f4a24.tar.bz2 biboumi-61de6b1dac4ef29627f3bdb9ce11b6c0d06f4a24.tar.xz biboumi-61de6b1dac4ef29627f3bdb9ce11b6c0d06f4a24.zip |
Revert "Use a different Date data type"
This reverts commit 857c7d3972a03cbeebf730d99b924d3710dee6a0.
Diffstat (limited to 'src/database/select_query.cpp')
-rw-r--r-- | src/database/select_query.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/database/select_query.cpp b/src/database/select_query.cpp deleted file mode 100644 index 970b06c..0000000 --- a/src/database/select_query.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include <database/select_query.hpp> - -template <> -std::string before_column<Database::Date>() -{ - if (Database::engine_type() == DatabaseEngine::EngineType::Sqlite3) - return "strftime(\"%Y-%m-%dT%H:%M:%SZ\", "; - else if (Database::engine_type() == DatabaseEngine::EngineType::Postgresql) - return "to_char("; - return {}; -} - -template <> -std::string after_column<Database::Date>() -{ - if (Database::engine_type() == DatabaseEngine::EngineType::Sqlite3) - return ")"; - else if (Database::engine_type() == DatabaseEngine::EngineType::Postgresql) - return R"(, 'YYYY-MM-DD"T"HH24:MM:SS"Z"'))"; - return {}; -} |