DERBY-6902: Value out of range error This change adds several new test cases to ParameterMappingTest, derived from the original scenario described in the issue. These test cases are designed to demonstrate the particular exception discussed in the issue, as well as to demonstrate several ways to use a CAST operator so that the query executes as desired.