[Libreoffice-bugs] [Bug 121342] Access2Base Counter for OpenRecordset usage is too low

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Nov 11 19:56:14 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=121342

--- Comment #6 from Julien Nabet <serval2412 at yahoo.fr> ---
Created attachment 146541
  --> https://bugs.documentfoundation.org/attachment.cgi?id=146541&action=edit
Recordset.xba test

Thought this patch may help
diff --git a/wizards/source/access2base/Recordset.xba
b/wizards/source/access2base/Recordset.xba
index cc46790532d9..f7193b22c65c 100644
--- a/wizards/source/access2base/Recordset.xba
+++ b/wizards/source/access2base/Recordset.xba
@@ -400,7 +400,10 @@ Dim i As Integer
        _Fields = Array()
        Set RowSet = Nothing
        If IsMissing(pbRemove) Then pbRemove = True
-       If pbRemove Then _ParentDatabase.RecordsetsColl.Remove(_Name)
+       If pbRemove Then
+               With _ParentDatabase
+                       .RecordsetMax = .RecordsetMax - 1
+                       .RecordsetsColl.Remove(_Name)

tony: you can give a try by retrieving the file and putting it in your profile
(search in https://wiki.documentfoundation.org/UserProfile#Windows).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20181111/fd79dbce/attachment.html>


More information about the Libreoffice-bugs mailing list