postgis: clear the result before throwing
This commit is contained in:
parent
7191d56a16
commit
9bfecac34e
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ class Connection
|
|||
}
|
||||
|
||||
s << "\nFull sql was: '" << sql << "'\n";
|
||||
}
|
||||
}
|
||||
if (result)
|
||||
PQclear(result);
|
||||
throw mapnik::datasource_exception( s.str() );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue