spurious error on selector invocation for a UDT value
Posted: Fri Dec 02, 2011 9:41 am
The following type definition was accepted by Rel 1.07 beta:
type time possrep { c char constraint LENGTH(c) = 5 AND IS_DIGITS(SUBSTRING(c,0,2)) AND IS_DIGITS(SUBSTRING(c,3,2)) AND SUBSTRING(c,2,1) = ':'};
However, time('17:52') results in
ERROR: Failure executing external function: java.lang.reflect.InvocationTargetException
Line 1, column 6 near '"17:32"'
Hugh Darwen
type time possrep { c char constraint LENGTH(c) = 5 AND IS_DIGITS(SUBSTRING(c,0,2)) AND IS_DIGITS(SUBSTRING(c,3,2)) AND SUBSTRING(c,2,1) = ':'};
However, time('17:52') results in
ERROR: Failure executing external function: java.lang.reflect.InvocationTargetException
Line 1, column 6 near '"17:32"'
Hugh Darwen