[Libreoffice-commits] core.git: wizards/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Aug 25 13:06:01 UTC 2018
wizards/source/access2base/Database.xba | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f903dd5e21265e0b520c312bc41cd65a1ab74851
Author: Jean-Pierre Ledure <jp at ledure.be>
AuthorDate: Sat Aug 25 15:03:04 2018 +0200
Commit: Jean-Pierre Ledure <jp at 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 = "Database.Close"
If _DbConnect <> DBCONNECTANY Then Goto Error_NotApplicable
With Connection
- .flush
+ If Utils.hasUNOMethod(Connection, "flush") Then .flush
.close()
.dispose()
End With
More information about the Libreoffice-commits
mailing list