pgtap icon indicating copy to clipboard operation
pgtap copied to clipboard

Improve handling of types

Open decibel opened this issue 10 years ago • 3 comments

This affects the function tests (IE: function_owner_is), but might impact others.

The current API of passing in a name is problematic because if you pass in a non-canonical type name (ie: int) you end up with a very confusing 'function does not exist' error. It would be better if we were dealing with regtype[].

Any significant downsides to changing the parameters of the function_* test functions? FWIW, regtype[] exists back to at least 9.0.

decibel avatar Oct 27 '15 20:10 decibel

No, I think that would be fine, as long as we updated compat/install-8.4.patch to switch it back to NAME[].

theory avatar Oct 27 '15 22:10 theory

Is it worth it to continue supporting 8.4? it's now 2 versions past EOL.

decibel avatar Oct 28 '15 02:10 decibel

pgTAP has patch files for support back to 8.1. I dropped 8.0 back in Nov 2011, so I'd say we could start dropping the other 8.x versions. Hasn't really been a reason to since then, though. If the change is just to the signature (regtype[] instead of name[]), then it will be easy for me to update the patches.

theory avatar Oct 28 '15 02:10 theory