0
0
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:
Serge Robyns 2017-03-19 16:21:14 +01:00
parent a462b35520
commit 7b4240e4f4
6 changed files with 7 additions and 7 deletions

View File

@ -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;
} }
}; };

View File

@ -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;
} }
}; };

View File

@ -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;
} }
}; };

View File

@ -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;
} }
}; };

View File

@ -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;
} }
}; };

View File

@ -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;
} }
}; };