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)

This commit is contained in:
Dane Springmeyer 2009-10-02 05:16:15 +00:00
parent 2a880432d3
commit e6306010f8

View file

@ -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 );
}