wizards/source/access2base/Database.xba |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f903dd5e21265e0b520c312bc41cd65a1ab74851
Author:     Jean-Pierre Ledure <j...@ledure.be>
AuthorDate: Sat Aug 25 15:03:04 2018 +0200
Commit:     Jean-Pierre Ledure <j...@ledure.be>
CommitDate: Sat Aug 25 15:03:04 2018 +0200

    Access2Base - Fix flush method when closing database
    
    The "flush" method is not always present in
       com.sun.star.sdbc.drivers.OConnectionWrapper or
       com.sun.star.sdbc.XConnection
    objects.
    => Test presence before executing Connection.flush
    
    Change-Id: I5ab4968ba6fdd0e23352e0cfe18907260c46b7b0

diff --git a/wizards/source/access2base/Database.xba 
b/wizards/source/access2base/Database.xba
index 72f73cb8daf2..69988fb4c9af 100644
--- a/wizards/source/access2base/Database.xba
+++ b/wizards/source/access2base/Database.xba
@@ -228,7 +228,7 @@ Const cstThisSub = &quot;Database.Close&quot;
        If _DbConnect &lt;&gt; DBCONNECTANY Then Goto Error_NotApplicable
 
        With Connection
-               .flush
+               If Utils.hasUNOMethod(Connection, &quot;flush&quot;) Then .flush
                .close()
                .dispose()
        End With
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to