dbaccess/source/core/api/resultcolumn.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f1f1445bb25d48289e77ec5e06da9a57502fa119
Author:     prrvchr <prrv...@gmail.com>
AuthorDate: Tue Jul 15 12:26:33 2025 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Tue Jul 15 16:11:36 2025 +0200

    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.gran...@collabora.co.uk>
    (cherry picked from commit 8fcd59e87065a44918714e5a26d99d303516b247)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/187906
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/dbaccess/source/core/api/resultcolumn.cxx 
b/dbaccess/source/core/api/resultcolumn.cxx
index 45d722431bee..6d76c4eedea6 100644
--- a/dbaccess/source/core/api/resultcolumn.cxx
+++ b/dbaccess/source/core/api/resultcolumn.cxx
@@ -78,6 +78,8 @@ void OResultColumn::impl_determineIsRowVersion_nothrow()
                         break;
                     }
                 }
+                Reference< XCloseable > xResultCloseable( xVersionColumns, 
UNO_QUERY_THROW );
+                xResultCloseable->close();
             }
         }
         catch(const SQLException&)

Reply via email to