summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2018-05-13 15:06:55 +0200
committerJean-Pierre Ledure <jp@ledure.be>2018-05-13 15:06:55 +0200
commit32cad25f949eabea52e1cf7962ba18a3edd1c647 (patch)
treeb929662e216cf1e8011d38f26e0a429c5474bb6f /wizards
parent8010f473c77b9f384a7067f487bc24469f8c0cd3 (diff)
Access2Base - FIX Sql errors when apostrophe in table names
Correct replacement of square brackets by quoting string
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 fad41abfbaa2..ebb6ada1bd7f 100644
--- a/wizards/source/access2base/Database.xba
+++ b/wizards/source/access2base/Database.xba
@@ -1851,7 +1851,7 @@ Const cstSingleQuote = &quot;&apos;&quot;
End If
vSubStrings() = Split(psSql, cstSingleQuote)
For i = 0 To UBound(vSubStrings)
- If (i Mod 2) = 0 Then &apos; Only even substrings are parsed for square brackets
+ If (i Mod 2) = 0 Or (i = UBound(vSubStrings)) Then &apos; Only even substrings are parsed for square brackets. Last substring is parsed anyway
vSubStrings(i) = Join(Split(vSubStrings(i), &quot;[&quot;), sQuote)
vSubStrings(i) = Join(Split(vSubStrings(i), &quot;]&quot;), sQuote)
End If