File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ #coding:utf-8
2+
3+ """
4+ ID: issue-7962
5+ ISSUE: https://github.com/FirebirdSQL/firebird/issues/7962
6+ TITLE: System procedure/function inconsistency between ISQL SHOW FUNCTIONS and SHOW PROCEDURES
7+ NOTES:
8+ [23.01.2024] pzotov
9+ Confirmed on 6.0.0.219
10+ Checked on 6.0.0.219 after commit https://github.com/FirebirdSQL/firebird/commit/bcc53d43c8cd0b904d2963173c153056f9465a09
11+ """
12+
13+ import pytest
14+ from firebird .qa import *
15+
16+ db = db_factory ()
17+
18+ test_script = """
19+ set term ^;
20+ create function standalone_fn() returns integer as begin return 1; end
21+ ^
22+ create procedure standalone_sp() as begin end
23+ ^
24+ create or alter package pg_test
25+ as
26+ begin
27+ function fn_user() returns int;
28+ procedure sp_user() returns (o int);
29+ end^
30+ set term ;^
31+ show functions;
32+ show procedure;
33+ """
34+
35+ act = isql_act ('db' , test_script )
36+
37+ expected_stdout = """
38+ STANDALONE_FN
39+ PG_TEST.FN_USER
40+ STANDALONE_SP
41+ PG_TEST.SP_USER
42+ """
43+
44+ @pytest .mark .version ('>=6.0' )
45+ def test_1 (act : Action ):
46+ act .expected_stdout = expected_stdout
47+ act .execute (combine_output = True )
48+ assert act .clean_stdout == act .clean_expected_stdout
You can’t perform that action at this time.
0 commit comments