diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2018-08-25 15:03:04 +0200 |
---|---|---|
committer | Jean-Pierre Ledure <jp@ledure.be> | 2018-08-25 15:03:04 +0200 |
commit | f903dd5e21265e0b520c312bc41cd65a1ab74851 (patch) | |
tree | dafbd4a0102a86be09f01ddd272417e8781ab7ab /wizards | |
parent | 6ae4c85fe6c1bdd009b494382ac2ca2584307801 (diff) |
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
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/source/access2base/Database.xba | 2 |
1 files changed, 1 insertions, 1 deletions
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 |