mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-12-25 07:20:50 +08:00
[-] mysql connectors in dynamic-query-constructors are fixed
This commit is contained in:
parent
6906a8d2d2
commit
31b43445d9
@ -52,7 +52,7 @@ 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>()};
|
||||
}
|
||||
|
||||
@ -60,7 +60,7 @@ namespace sqlpp
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user