LucidDB / luciddb

DEFUNCT: See README
https://github.com/LucidDB/luciddb
Apache License 2.0
53 stars 24 forks source link

[FRG-211] Position function fails if substring is at end of string and java calc is used #661

Closed dynamobi-build closed 12 years ago

dynamobi-build commented 12 years ago

[reporter="elin", created="Thu, 21 Sep 2006 17:36:14 -0500 (GMT-05:00)"] If calcVM is set to either auto or java, position function returns 0 instead of the correct position when the substring is at the end of the string.

-- to repro:
alter system set "calcVirtualMachine"='CALCVM_JAVA';
-- this returns 0
values position('tra' in 'fdgjklewrtra');

alter system set "calcVirtualMachine"='CALCVM_AUTO';
-- as does this, since it chooses to use the java calc
values posistion('tra' in 'fdgjklewrtra');

alter system set "calcVirtualMachine"='CALCVM_FENNEL';
-- but we get the right answer 10, here
values posistion('tra' in 'fdgjklewrtra');

related test: calc.funcStringCover

dynamobi-build commented 12 years ago

[author="jvs", created="Fri, 22 Sep 2006 10:56:14 -0500 (GMT-05:00)"] Fixed in eigenchange 7733.

dynamobi-build commented 12 years ago

[author="jvs", created="Fri, 22 Sep 2006 10:56:37 -0500 (GMT-05:00)"] Reassigning for verification.