From 513db5ba87c2fb8522a8013728ef372df7cdf1da Mon Sep 17 00:00:00 2001 From: cxl Date: Wed, 8 Sep 2010 11:41:59 +0000 Subject: [PATCH] *Sql: GCC compile fix git-svn-id: svn://ultimatepp.org/upp/trunk@2671 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Sql/Sqls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uppsrc/Sql/Sqls.h b/uppsrc/Sql/Sqls.h index afc74f965..fee2e6ae8 100644 --- a/uppsrc/Sql/Sqls.h +++ b/uppsrc/Sql/Sqls.h @@ -23,7 +23,7 @@ class SqlRaw : public String, AssignValueTypeNo { public: operator Value() const { return RawValue(*this); } SqlRaw(const Value& q) - : String(IsNull(q) ? NULL : + : String(IsNull(q) ? String() : IsString(q) ? String(q) : String(RawValue::Extract(q))) {} SqlRaw(const String& s) : String(s) {}