Skip to content

Commit

Permalink
[-] mysql connectors in dynamic-query-constructors are fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Meetrious authored and rbock committed Dec 19, 2024
1 parent 6906a8d commit 31b4344
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/sqlpp11/mysql/remove.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ namespace sqlpp
template <typename 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>()};
}

template <typename Database, typename Table>
auto dynamic_remove_from(const Database& /*unused*/, Table 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)};
}
} // namespace mysql
Expand Down
2 changes: 1 addition & 1 deletion include/sqlpp11/mysql/update.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace sqlpp
constexpr auto dynamic_update(const Database& /*unused*/, 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)};
}
} // namespace mysql
Expand Down

0 comments on commit 31b4344

Please sign in to comment.