From f903dd5e21265e0b520c312bc41cd65a1ab74851 Mon Sep 17 00:00:00 2001 From: Jean-Pierre Ledure Date: Sat, 25 Aug 2018 15:03:04 +0200 Subject: 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 --- wizards/source/access2base/Database.xba | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wizards') 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 -- cgit