-
Notifications
You must be signed in to change notification settings - Fork 103
WIP: Add procedures are()
#359
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
And add doc for `procedures_are()`
copy pasted with minor edition from `functions_are()`
It is now excluding procedures from the list of functions. See `procedures_are()` instead.
ce21421
to
2dcd43b
Compare
Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very thorough, but I think we should consider a deprecation period and a warning. Thoughts?
@@ -4979,7 +4979,7 @@ RETURNS TEXT AS $$ | |||
SELECT _are( | |||
'functions', | |||
ARRAY( | |||
SELECT name FROM tap_funky WHERE schema = $1 | |||
SELECT name FROM tap_funky WHERE schema = $1 and kind != 'p' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do we do about people who have used these functions for procedures? With this change, their tests will start failing.
I wonder if maybe we should introduce a warning with a deprecation notice and instructions for them to update their tests when kind = 'p'
, and then remove it in a year or so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The migration file is missing the changes to the functions_are()
functions.
code, test and doc overall ok, though there are some other references to functions_are() that I didn't explore yet.