Skip to content
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

sql/logictest: add CALL statements to drop_procedure #112097

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions pkg/sql/logictest/testdata/logic_test/drop_procedure
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ ROLLBACK
statement ok
DROP PROCEDURE p_test_drop()

# TODO(mgartner): This error message could be improved.
statement error pgcode 42883 unknown signature: p_test_drop\(\)
CALL p_test_drop()

query T
SELECT create_statement FROM [SHOW CREATE PROCEDURE public.p_test_drop]
----
Expand All @@ -86,6 +90,9 @@ $$
statement ok
DROP PROCEDURE p_test_drop(INT), p_test_drop(INT)

statement error pgcode 42883 procedure public.p_test_drop does not exist
CALL public.p_test_drop(1)

statement error pgcode 42883 pq: unknown procedure: public.p_test_drop\(\)
SELECT create_statement FROM [SHOW CREATE PROCEDURE public.p_test_drop]

Expand All @@ -101,6 +108,9 @@ $$
statement ok
DROP PROCEDURE p_test_drop(INT)

statement error pgcode 42883 procedure p_test_drop does not exist
CALL p_test_drop(1)

statement error pgcode 42883 pq: unknown procedure: sc1.p_test_drop\(\)
SELECT create_statement FROM [SHOW CREATE PROCEDURE sc1.p_test_drop]

Expand Down