wizards/source/access2base/Database.xba |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

New commits:
commit 54f0ae24173a69d145e2ffc3aaa2f6bd29e39611
Author:     Jean-Pierre Ledure <j...@ledure.be>
AuthorDate: Tue Sep 1 12:06:28 2020 +0200
Commit:     Jean-Pierre Ledure <j...@ledure.be>
CommitDate: Tue Sep 1 12:06:28 2020 +0200

    Access2Base - Remove workaround on Firebird product name
    
    Bug 118809 has been fixed. Workaround may be removed
    without regression
    
    Change-Id: I8716fa75a6d98b7e15752692e5275dbcb81e7efb

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
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to