Commit 0d391b7d authored by Maciej Sobczak's avatar Maciej Sobczak Committed by Ronan

Fixed PostgreSQL BLOB destructor.

parent 2cc57ab5
...@@ -38,7 +38,10 @@ postgresql_blob_backend::postgresql_blob_backend( ...@@ -38,7 +38,10 @@ postgresql_blob_backend::postgresql_blob_backend(
postgresql_blob_backend::~postgresql_blob_backend() postgresql_blob_backend::~postgresql_blob_backend()
{ {
lo_close(session_.conn_, fd_); if (fd_ != -1)
{
lo_close(session_.conn_, fd_);
}
} }
std::size_t postgresql_blob_backend::get_len() std::size_t postgresql_blob_backend::get_len()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment