Opened 16 years ago

Closed 16 years ago

#450 closed defect (fixed)

Expression Function SUBSTR does not work as expected

Reported by: thomasknoell Owned by: thomasknoell
Priority: major Milestone:
Component: FDO API Version: 3.4.0
Severity: 3 Keywords:
Cc: External ID:

Description

The expression function SUBSTR allows a user to enter a negative number as the start position of a substring. If a negative number is entered, the start of the substring is calculated from the end of the source string according to the provided index. The current default implementation of this function does not support this. Instead, it returns a string from the 1st position of the source string.

Change History (2)

comment:1 by thomasknoell, 16 years ago

Owner: changed from gregboone to thomasknoell
Status: newassigned

comment:2 by thomasknoell, 16 years ago

Resolution: fixed
Status: assignedclosed

The fix affected the following open-source files:

Modified: Providers\GenericRdbms\Src\UnitTest\Common\FdoExpressionFunctionTest.cpp Modified: Providers\GenericRdbms\Src\UnitTest\Common\FdoExpressionFunctionTest.h Modified: Providers\SDF\Src\UnitTest\FdoExpressionFunctionTest.cpp Modified: Providers\SDF\Src\UnitTest\FdoExpressionFunctionTest.h Modified: Providers\SHP\Src\UnitTest\FdoExpressionFunctionTest.cpp Modified: Providers\SHP\Src\UnitTest\FdoExpressionFunctionTest.h Modified: Utilities\ExpressionEngine\Inc\Functions\String\FdoFunctionSubstr.h Modified: Utilities\ExpressionEngine\Src\Functions\String\FdoFunctionSubstr.cpp

Note: See TracTickets for help on using tickets.