mirror of
https://github.com/LibreOffice/core.git
synced 2025-07-23 04:42:03 +00:00
tdf#167495 Base need to close ResultSet after using it.
I checked that this is where I saw Base open DatabaseMetData.getColumnVersion() as many times as there are columns in the ResultSet and never close them. Change-Id: I4aa371dc08826d864718285588a685a799eca607 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187901 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@ -78,6 +78,8 @@ void OResultColumn::impl_determineIsRowVersion_nothrow()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference< XCloseable > xResultCloseable( xVersionColumns, UNO_QUERY_THROW );
|
||||||
|
xResultCloseable->close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(const SQLException&)
|
catch(const SQLException&)
|
||||||
|
Reference in New Issue
Block a user