From 33c1d21b7fe5f87d25bcc2651151e6b0391ae36b Mon Sep 17 00:00:00 2001 From: artemp Date: Tue, 25 Nov 2014 11:09:42 +0100 Subject: [PATCH] use four letter abriviations to determine datatypes (https://www.sqlite.org/datatype3.html) --- plugins/input/sqlite/sqlite_utils.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/input/sqlite/sqlite_utils.hpp b/plugins/input/sqlite/sqlite_utils.hpp index 27758e6ec..0d63e82bb 100644 --- a/plugins/input/sqlite/sqlite_utils.hpp +++ b/plugins/input/sqlite/sqlite_utils.hpp @@ -684,8 +684,8 @@ public: desc.add_descriptor(mapnik::attribute_descriptor(fld_name, mapnik::String)); } else if (boost::algorithm::contains(fld_type, "real") || - boost::algorithm::contains(fld_type, "float") || - boost::algorithm::contains(fld_type, "double")) + boost::algorithm::contains(fld_type, "floa") || + boost::algorithm::contains(fld_type, "doub")) { desc.add_descriptor(mapnik::attribute_descriptor(fld_name, mapnik::Double)); } @@ -700,6 +700,7 @@ public: { // "Column Affinity" says default to "Numeric" but for now we pass.. //desc_.add_descriptor(attribute_descriptor(fld_name,mapnik::Double)); + desc.add_descriptor(mapnik::attribute_descriptor(fld_name, mapnik::String)); #ifdef MAPNIK_LOG