Browse Source

Fix parsing of escaped double quotes in expressions

git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1267 f203690c-595d-4dc9-a70b-905162fa7fd2
tags/jackcess-2.2.3
James Ahlborn 5 years ago
parent
commit
cb9ed9bd0b

+ 5
- 0
src/changes/changes.xml View File

@@ -4,6 +4,11 @@
<author email="javajedi@users.sf.net">Tim McCune</author>
</properties>
<body>
<release version="2.2.3" date="TBD">
<action dev="jahlborn" type="fix">
Fix parsing of escaped double quotes in expressions.
</action>
</release>
<release version="2.2.2" date="2019-01-05">
<action dev="jahlborn" type="fix" system="SourceForge2" issue="151">
Fix length in units calculation for Access 97 text fields.

+ 0
- 1
src/main/java/com/healthmarketscience/jackcess/impl/expr/ExpressionTokenizer.java View File

@@ -269,7 +269,6 @@ class ExpressionTokenizer
char c = buf.next();
if(c == endChar) {
if(allowDoubledEscape && (buf.peekNext() == endChar)) {
sb.append(endChar);
buf.next();
} else {
complete = true;

+ 1
- 0
src/test/java/com/healthmarketscience/jackcess/impl/expr/DefaultFunctionsTest.java View File

@@ -144,6 +144,7 @@ public class DefaultFunctionsTest extends TestCase

assertEval("FOOO", "=UCase(\"fOoO\")");
assertEval("fooo", "=LCase(\"fOoO\")");
assertEval(" FOO \" BAR ", "=UCase(\" foo \"\" bar \")");

assertEval("bl", "=Left(\"blah\", 2)");
assertEval("", "=Left(\"blah\", 0)");

Loading…
Cancel
Save