Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
10.10.1.1
-
None
Description
In most Derby messages, arguments appear in ascending order. That is,
{0} occurs in the message first, then {1}, then {2}, and so on. Sometimes, however, arguments occur out of sequence. When this happens, the names in the <arg> sub-elements may not agree with the order that the arguments actually occur in the message. This causes MessageBuilder to garble the dita source for the Reference Guide page titled "SQL error messages and exceptions".For instance, here is the messages.xml element for SQLState 22014:
<msg>
<name>22014</name>
<text>The start position for LOCATE is invalid; it must be a positive integer. The index to start the search from is '{2}'. The string to search for is '{0}
'. The string to search from is '
{1}'. </text><arg>startIndex</arg>
<arg>searchString</arg>
<arg>fromString</arg>
</msg>
This gives rise to the following garbled text in the generated reference guide page:
"The start position for LOCATE is invalid; it must be a positive integer. The index to start the search from is '<fromString>'. The string to search for is '<startIndex>'. The string to search from is '<searchString>'. "
We should re-order the <arg> sub-elements so that the first <arg> sub-lement corresponds to {0}, the second <arg> sub-element corresponds to {1}
, and so on.
Attachments
Attachments
Issue Links
- is related to
-
DERBY-2774 Desciption of variable part in error message of XSLAM was not exists in Derby reference manual.
- Closed
- relates to
-
DERBY-2705 Description of error message for X0X61/X0Y59/X0Y69/X0Y70 in SQL error messages and exceptions of Reference manual is not appropriate.
- Closed
-
DERBY-5879 Fix problems in English messages disclosed by a localization audit.
- Closed