Earlier today Hakan Kocaman (Hakan(dot)Kocaman(at)digame(dot)de) posted a query on
general "Issue with functions in Rule".
Turned out the problem is with a function that takes a compound type
based on a view with ORDER BY. If you add/remove ORDER BY to the view
definition in the attached it doesn't recognise the type (I think)
The error is different in 8.0.x and 8.1.x but occurs in both.
--
Richard Huxton
Archonet Ltd