Open TheAceMan opened 2 years ago
The reason this is not working is the same reason for which faking schema-bound objects is not currently supported.
In short, to make this work we would have to identify and remove all "enforced dependencies", then fake the function, and afterward restore the dependencies (potentially with a switch to make the restore optional). We would also need to provide a way to restore all dependencies in case the test got executed without a transaction (intentionally or unintentionally).
We have started the work on that bigger schema-bound feature, but there is currently no ETA. I'll mark this request as "help wanted".
Receive this error:
Script that reproduces the issue: