mirror of
https://github.com/rbock/sqlpp11.git
synced 2026-01-08 06:00:40 -06:00
Fixed stupid bug in insert.
Basically nothing would have ever been inserted other than default lines.
This commit is contained in:
@@ -99,7 +99,9 @@ namespace sqlpp
|
||||
detail::serialize_empty_insert_list(os, db);
|
||||
}
|
||||
else
|
||||
{
|
||||
_insert_list.serialize(os, db);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
@@ -114,8 +114,10 @@ namespace sqlpp
|
||||
template<typename Db>
|
||||
void serialize(std::ostream& os, Db& db) const
|
||||
{
|
||||
if (sizeof...(Assignments) + _dynamic_columns.size())
|
||||
if (sizeof...(Assignments) + _dynamic_columns.size() == 0)
|
||||
{
|
||||
detail::serialize_empty_insert_list(os, db);
|
||||
}
|
||||
else
|
||||
{
|
||||
os << " (";
|
||||
|
||||
Reference in New Issue
Block a user