0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Fixed text field stream operator

This commit is contained in:
rbock 2014-08-03 09:27:20 +02:00
parent 8b5fc67af6
commit cc512d0955

View File

@ -237,13 +237,12 @@ namespace sqlpp
{ {
if (e.is_null() and not null_is_trivial_value_t<FieldSpec>::value) if (e.is_null() and not null_is_trivial_value_t<FieldSpec>::value)
{ {
os << "NULL"; return os << "NULL";
} }
else else
{ {
os << e.value(); return os << e.value();
} }
return serialize(e, os);
} }
using blob = text; using blob = text;