summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2018-08-25 15:03:04 +0200
committerJean-Pierre Ledure <jp@ledure.be>2018-08-25 15:03:04 +0200
commitf903dd5e21265e0b520c312bc41cd65a1ab74851 (patch)
treedafbd4a0102a86be09f01ddd272417e8781ab7ab /wizards
parent6ae4c85fe6c1bdd009b494382ac2ca2584307801 (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.xba2
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 = &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