Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
@@ -427,6 +427,7 @@ IHqlExpression * HqlCppCaseInfo::buildIndexedMap(BuildCtx & ctx, IHqlExpression
break;
case type_string:
tableIndex = createValue(no_index, makeCharType(), LINK(test), getZero());
+ tableIndex = createValue(no_cast, makeIntType(1, false), tableIndex);
default:
throwUnexpectedType(compareType);
@@ -126,3 +126,16 @@
<Dataset name='Result 31'>
<Row><Result_31>true</Result_31></Row>
</Dataset>
+<Dataset name='Result 32'>
+ <Row><ok>true</ok></Row>
+ <Row><ok>false</ok></Row>
+</Dataset>
@@ -96,3 +96,7 @@ set2 = ALL;
set2 != ALL;
set2 = [];
set2 != [];
+
+dsx := dataset(['a','b','d','X','È','Ö','â','\240','\241','\376','\377'], { string1 f1 });
+output (nofold(dsx), { ok := f1 in ['a','c','e','f','g','h','i','j','0','_','Ö','ü','¢'] });