tracker issue : CF-4173695

select a category, or use search below
(searches all categories and all time range)
Title:

Decision operator inconsistency

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/AsDesigned

Reporter/Name(from Bugbase): Mike Begin / Mike Begin (Mike Begin)

Created: 07/19/2016

Components: Language

Versions: 10.0

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Unknown

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Problem Description:

Certain values yield inconsistent results when compared using EQ/NEQ/GT/LT operators.

Steps to Reproduce:

writedump('1,2' eq '1,2,16')
writedump('1,2' lt '1,2,16')
writedump('1,2' gt '1,2,16')
writedump('1,2' neq '1,2,16')

Actual Result:

YES
NO
NO
NO

Expected Result:

NO
YES
NO
YES

Any Workarounds:

Use the compare() function

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4173695

External Customer Info:
External Company:  
External Customer Name: Mike Begin
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

String provided in the example are possible CF date types: 1,2 gets converted to 1,2,2016 and 1,2,16 is the same date which is why they are equal. similarly try for other date formats like 1,2,15 and compare, you will get correct results.
Comment by Milan C.
2156 | August 08, 2016 03:45:01 PM GMT