Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): brian king / brian king (brian king)
Created: 09/07/2016
Components: Language
Versions: 11.0
Failure Type: Usability Issue
Found In Build/Fixed In Build: CF11_Final / 2018,0,0,307622
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Win 2008 Server R2 64 bit
Vote Count: 5
Problem Description:
.len() .trim() and other "string"-based member functions should cast values that are 'stringy" but not objects as string just as Len() and Trim() do now, to reduce confusion in code. When used on values from query that are not varchar the error thrown is "The len method was not found."
Steps to Reproduce:
sampleQuery = QueryNew( "ID", "Integer" , {"id":1} );
WriteOutput( sampleQuery.ID.len() );
Actual Result:
Exception: The len method was not found.
Expected Result:
1
Any Workarounds:
Use headless functions (Len(), Trim(), etc) as opposed to member functions ( .len(), .trim() )
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4187503
External Customer Info:
External Company:
External Customer Name: brian king
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: