Adjusted insert and update to work with sqlite

Introduced first connector trait to change query generation.
This commit is contained in:
Roland Bock
2013-09-09 22:45:34 +02:00
parent 81f1735de8
commit 9c1e75cd89
5 changed files with 136 additions and 14 deletions

View File

@@ -39,11 +39,12 @@ namespace sqlpp
{
using _is_assignment = tag_yes;
using column_type = Lhs;
using value_type = Rhs;
template<typename Db>
void serialize(std::ostream& os, Db& db) const
{
_lhs.serialize(os, db);
_lhs.serialize_name(os, db);
if (trivial_value_is_null_t<Lhs>::value and _rhs._is_trivial())
{
os << "=NULL";