summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2020-09-01 12:06:28 +0200
committerJean-Pierre Ledure <jp@ledure.be>2020-09-01 12:06:28 +0200
commit54f0ae24173a69d145e2ffc3aaa2f6bd29e39611 (patch)
tree8b23aeb91488bca02839863c17a32901ae001080 /wizards
parent578dc3477011e4bdcaf703533c1def9d55000de4 (diff)
Access2Base - Remove workaround on Firebird product name
Bug 118809 has been fixed. Workaround may be removed without regression Change-Id: I8716fa75a6d98b7e15752692e5275dbcb81e7efb
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/access2base/Database.xba9
1 files changed, 2 insertions, 7 deletions
diff --git a/wizards/source/access2base/Database.xba b/wizards/source/access2base/Database.xba
index 7b35585bfee7..c654d1d0a7e9 100644
--- a/wizards/source/access2base/Database.xba
+++ b/wizards/source/access2base/Database.xba
@@ -992,7 +992,7 @@ Dim i As Integer, bFound As Boolean, oTables As Object
Set oObject = RecordsetsColl.Item(pvIndex)
Case Else &apos; pvIndex is numeric
If pvIndex &lt; 0 Or pvIndex &gt;= RecordsetsColl.Count Then Goto Trace_IndexError
- Set oObject = RecordsetsColl.Item(pvIndex + 1) &apos; Collection members are numbered 1 ... Count
+ Set oObject = RecordsetsColl.Item(pvIndex + 1) &apos; Collection members are numERRSQLSTATEMENTbered 1 ... Count
End Select
Exit_Function:
@@ -1161,12 +1161,7 @@ Dim sProductName As String
If pvOrderClause &lt;&gt; &quot;&quot; Then sOrderBy = &quot; ORDER BY &quot; &amp; pvOrderClause Else sOrderBy = &quot;&quot;
sLimit = &quot;&quot;
-&apos; Workaround for https://bugs.documentfoundation.org/show_bug.cgi?id=118767
-&apos; awaiting solution for https://bugs.documentfoundation.org/show_bug.cgi?id=118809
sProductName = UCase(MetaData.getDatabaseProductName())
- If sProductName = &quot;&quot; Then
- If MetaData.URL = &quot;sdbc:embedded:firebird&quot; Or Left(MetaData.URL, 13) = &quot;sdbc:firebird&quot; Then sProductName = &quot;FIREBIRD&quot;
- End If
Select Case sProductName
Case &quot;MYSQL&quot;, &quot;SQLITE&quot;
@@ -1177,7 +1172,7 @@ Dim sProductName As String
sTarget = UCase(psFunction) &amp; &quot;(&quot; &amp; psExpr &amp; &quot;)&quot;
End If
sSql = &quot;SELECT &quot; &amp; sTarget &amp; &quot; AS &quot; &amp; sTempField &amp; &quot; FROM &quot; &amp; psDomain &amp; sWhere &amp; sOrderBy &amp; sLimit
- Case &quot;FIREBIRD&quot;
+ Case &quot;FIREBIRD (ENGINE12)&quot;
If psFunction = &quot;&quot; Then sTarget = &quot;FIRST 1 &quot; &amp; psExpr Else sTarget = UCase(psFunction) &amp; &quot;(&quot; &amp; psExpr &amp; &quot;)&quot;
sSql = &quot;SELECT &quot; &amp; sTarget &amp; &quot; AS &quot; &amp; sTempField &amp; &quot; FROM &quot; &amp; psDomain &amp; sWhere &amp; sOrderBy
Case Else &apos; Standard syntax - Includes HSQLDB