rbock/sqlpp11-connector-sqlite3

Compile error after pull of sqlpp11

Closed this issue · 1 comments

jgaa commented

Hi,

I'm testing sqlpp11 in a project, and have added it as a git submodule. This morning I pulled the latest sources for all my submodules, and sqlpp11-connector-sqlite3 failed to compile. The following patch fixed the (compilation) problem for my project (I use my own CMakeLists.txt, and have added the path to the date library there).

diff --git a/include/sqlpp11/sqlite3/connection.h b/include/sqlpp11/sqlite3/connection.h
index a915ca7..f7bf315 100644
--- a/include/sqlpp11/sqlite3/connection.h
+++ b/include/sqlpp11/sqlite3/connection.h
@@ -279,9 +279,9 @@ namespace sqlpp
                        template<typename T>
                                auto operator()(const T& t) -> decltype(t._run(*this))
                                {
-                                       sqlpp::run_check_t<T>::_();
+                    sqlpp::run_check_t<_serializer_context_t, T>::_();
                                        sqlpp::serialize_check_t<_serializer_context_t, T>::_();
-                                       using _ok = sqlpp::logic::all_t<sqlpp::run_check_t<T>::type::value,
+                    using _ok = sqlpp::logic::all_t<sqlpp::run_check_t<_serializer_context_t, T>::type::value,
                                                                sqlpp::serialize_check_t<_serializer_context_t, T>::type::value>;
                                        return _run(t, _ok{});
                                }
@@ -299,9 +299,9 @@ namespace sqlpp
                        template<typename T>
                                auto prepare(const T& t) -> decltype(t._prepare(*this))
                                {
-                                       sqlpp::prepare_check_t<T>::_();
+                    sqlpp::prepare_check_t<_serializer_context_t, T>::_();
                                        sqlpp::serialize_check_t<_serializer_context_t, T>::_();
-                                       using _ok = sqlpp::logic::all_t<sqlpp::prepare_check_t<T>::type::value,
+                    using _ok = sqlpp::logic::all_t<sqlpp::prepare_check_t<_serializer_context_t, T>::type::value,
                                                                sqlpp::serialize_check_t<_serializer_context_t, T>::type::value>;
                                        return _prepare(t, _ok{});
rbock commented

Hi Jarle,

sorry for that. I forgot to release the connector libraries for mysql and sqlite3 yesterday after releasing sqlpp11-0.35

Fixed that now.

Best,

Roland