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:
parent
2a880432d3
commit
e6306010f8
1 changed files with 2 additions and 0 deletions
|
@ -88,6 +88,8 @@ class Connection
|
||||||
{
|
{
|
||||||
s += ":\n" + msg.substr( 0, msg.size() - 1 );
|
s += ":\n" + msg.substr( 0, msg.size() - 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
s += "\nFull sql was: '" + sql + "'\n";
|
||||||
}
|
}
|
||||||
throw mapnik::datasource_exception( s );
|
throw mapnik::datasource_exception( s );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue