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:
prrvchr
2025-07-15 12:26:33 +02:00
committed by Noel Grandin
parent 46f1585d53
commit 8fcd59e870

View File

@ -78,6 +78,8 @@ void OResultColumn::impl_determineIsRowVersion_nothrow()
break;
}
}
Reference< XCloseable > xResultCloseable( xVersionColumns, UNO_QUERY_THROW );
xResultCloseable->close();
}
}
catch(const SQLException&)