
|
If you were logged in you would be able to see more operations.
|
|
|
Fennel
Created: 04/Dec/05 11:50 PM
Updated: 04/Jan/07 02:36 PM
|
|
| Component/s: |
Calc
|
| Affects Version/s: |
None
|
| Fix Version/s: |
None
|
|
|
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.
|
|
Description
|
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. |
Show » |
|
boolean SqlOperatorTests.issueFnl3Fixed = false;
and enable the corresponding code.