0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-12-25 23:40:50 +08:00

[-] mysql connectors in dynamic-query-constructors are fixed

This commit is contained in:
Nikolay 2024-12-19 10:28:18 +07:00 committed by Roland Bock
parent 6906a8d2d2
commit 31b43445d9
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ namespace sqlpp
template <typename Database> template <typename Database>
auto dynamic_remove(const Database& /*unused*/) -> decltype(blank_remove_t<Database>()) auto dynamic_remove(const Database& /*unused*/) -> decltype(blank_remove_t<Database>())
{ {
static_assert(std::is_base_of<connection, Database>::value, "Invalid database parameter"); static_assert(std::is_base_of<connection_base, Database>::value, "Invalid database parameter");
return {blank_remove_t<Database>()}; return {blank_remove_t<Database>()};
} }
@ -60,7 +60,7 @@ namespace sqlpp
auto dynamic_remove_from(const Database& /*unused*/, Table table) auto dynamic_remove_from(const Database& /*unused*/, Table table)
-> decltype(blank_remove_t<Database>().from(table)) -> decltype(blank_remove_t<Database>().from(table))
{ {
static_assert(std::is_base_of<connection, Database>::value, "Invalid database parameter"); static_assert(std::is_base_of<connection_base, Database>::value, "Invalid database parameter");
return {blank_remove_t<Database>().from(table)}; return {blank_remove_t<Database>().from(table)};
} }
} // namespace mysql } // namespace mysql

View File

@ -53,7 +53,7 @@ namespace sqlpp
constexpr auto dynamic_update(const Database& /*unused*/, Table table) constexpr auto dynamic_update(const Database& /*unused*/, Table table)
-> decltype(blank_update_t<Database>().single_table(table)) -> decltype(blank_update_t<Database>().single_table(table))
{ {
static_assert(std::is_base_of<connection, Database>::value, "Invalid database parameter"); static_assert(std::is_base_of<connection_base, Database>::value, "Invalid database parameter");
return {blank_update_t<Database>().single_table(table)}; return {blank_update_t<Database>().single_table(table)};
} }
} // namespace mysql } // namespace mysql