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:
parent
6906a8d2d2
commit
31b43445d9
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user