From e6306010f8c7fb1a3aa2c477c382937727617efe Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Fri, 2 Oct 2009 05:16:15 +0000 Subject: [PATCH] when a SQL query sent to postgres fails, output the whole thing so users know what mapnik tried to send (as the PSQL error hint truncates the sql) --- plugins/input/postgis/connection.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/input/postgis/connection.hpp b/plugins/input/postgis/connection.hpp index 373452a2a..b219f287e 100644 --- a/plugins/input/postgis/connection.hpp +++ b/plugins/input/postgis/connection.hpp @@ -88,6 +88,8 @@ class Connection { s += ":\n" + msg.substr( 0, msg.size() - 1 ); } + + s += "\nFull sql was: '" + sql + "'\n"; } throw mapnik::datasource_exception( s ); }