mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 12:51:13 +08:00
intermediate fix for issue 152
This commit is contained in:
parent
a462b35520
commit
7b4240e4f4
@ -66,7 +66,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
serialize_operand(t._expression, context);
|
serialize_operand(t._expression, context);
|
||||||
context << " AS ";
|
context << " AS ";
|
||||||
context << name_of<T>::char_ptr();
|
context << '"' << name_of<T>::char_ptr() << '"';
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -125,7 +125,7 @@ namespace sqlpp
|
|||||||
|
|
||||||
static Context& _(const T&, Context& context)
|
static Context& _(const T&, Context& context)
|
||||||
{
|
{
|
||||||
context << name_of<typename T::_table>::char_ptr() << '.' << name_of<T>::char_ptr();
|
context << '"' << name_of<typename T::_table>::char_ptr() << '"' << '.' << '"' << name_of<T>::char_ptr() << '"';
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -235,7 +235,7 @@ namespace sqlpp
|
|||||||
|
|
||||||
static Context& _(const T& t, Context& context)
|
static Context& _(const T& t, Context& context)
|
||||||
{
|
{
|
||||||
context << name_of<T>::char_ptr() << " AS (";
|
context << '"' << name_of<T>::char_ptr() << '"' << " AS (";
|
||||||
serialize(t._statement, context);
|
serialize(t._statement, context);
|
||||||
context << ")";
|
context << ")";
|
||||||
return context;
|
return context;
|
||||||
@ -279,7 +279,7 @@ namespace sqlpp
|
|||||||
|
|
||||||
static Context& _(const T&, Context& context)
|
static Context& _(const T&, Context& context)
|
||||||
{
|
{
|
||||||
context << name_of<T>::char_ptr();
|
context << '"' << name_of<T>::char_ptr() << '"';
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -56,7 +56,7 @@ namespace sqlpp
|
|||||||
|
|
||||||
static Context& _(const T&, Context& context)
|
static Context& _(const T&, Context& context)
|
||||||
{
|
{
|
||||||
context << name_of<typename T::_column_t>::char_ptr();
|
context << '"' << name_of<typename T::_column_t>::char_ptr() << '"';
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -120,7 +120,7 @@ namespace sqlpp
|
|||||||
|
|
||||||
static Context& _(const T&, Context& context)
|
static Context& _(const T&, Context& context)
|
||||||
{
|
{
|
||||||
context << name_of<T>::char_ptr();
|
context << '"' << name_of<T>::char_ptr() << '"';
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -112,7 +112,7 @@ namespace sqlpp
|
|||||||
serialize(t._table, context);
|
serialize(t._table, context);
|
||||||
if (requires_braces_t<Table>::value)
|
if (requires_braces_t<Table>::value)
|
||||||
context << ")";
|
context << ")";
|
||||||
context << " AS " << name_of<T>::char_ptr();
|
context << " AS " << '"' << name_of<T>::char_ptr() << '"';
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user