dynamobi/dynamobi — Issue #505: [FNL-3] Calc programs do not output internationalized error messages
Author: dynamobi-build
Created: 2011-12-30 03:30:25+00:00
State: open
Labels: Calc, FNL

[reporter="jhyde", created="Sun, 4 Dec 2005 23:50:31 -0500 (GMT-05:00)"]
Calc programs do not output internationalized error messages. For example, the expression

trim('x' || 'y' from 'abcde')

should yield a runtime error

Invalid argument(s) for 'TRIM' function

The Java implementation of the function produces that error, but the C++ implementation instead produces

could not calculate results for the following row:

[ 0 ]

Messages:

[0]:PC=0 Code=22027

Both implementations should return the SQL error code, 22027.

The biggest challenge in fixing this bug is to share the error messages between the C++ and Java implementations. The fix could either generate error templates into the calculator program, or it could read the error messages from a C++ resource file.

The behavior of the C++ and Java implementations should be sufficiently similar to enable the same negative tests to be run on both.