TYPMISMCH
686
Type mismatch between type and type
The specified type names don’t match, which is most likely due to one of the following situations:
- The type of one or more variables being set in the SET statement is not compatible with the type of the value being assigned.
- When importing a prototype of a subroutine or function into the source where it is called, the compiler compares the signature of the call with that of the prototype of the routine. The specified argument type did not resolve to the parameter type within the prototype.
- In a FOREACH statement, the collection is a dynamic array and the loop variable’s type doesn’t match (or isn’t an ancestor of) the element type of that array, or the collection element type cannot be coerced into the specified AS type.