From cc512d095581d433d4b5028c6c62ccb907308f03 Mon Sep 17 00:00:00 2001 From: rbock Date: Sun, 3 Aug 2014 09:27:20 +0200 Subject: [PATCH] Fixed text field stream operator --- include/sqlpp11/text.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/sqlpp11/text.h b/include/sqlpp11/text.h index 7e7d9ad7..58affcfc 100644 --- a/include/sqlpp11/text.h +++ b/include/sqlpp11/text.h @@ -237,13 +237,12 @@ namespace sqlpp { if (e.is_null() and not null_is_trivial_value_t::value) { - os << "NULL"; + return os << "NULL"; } else { - os << e.value(); + return os << e.value(); } - return serialize(e, os); } using blob = text;