2021-04-26 20:07:00 +02:00
|
|
|
#coding:utf-8
|
|
|
|
|
2022-01-20 17:32:14 +01:00
|
|
|
"""
|
|
|
|
ID: issue-2030
|
|
|
|
ISSUE: 2030
|
|
|
|
TITLE: PSQL output parameter size limited
|
|
|
|
DESCRIPTION:
|
|
|
|
JIRA: CORE-1609
|
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-20 17:32:14 +01:00
|
|
|
import pytest
|
|
|
|
from firebird.qa import *
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-20 17:32:14 +01:00
|
|
|
db = db_factory()
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-20 17:32:14 +01:00
|
|
|
test_script = """
|
2021-04-26 20:07:00 +02:00
|
|
|
set bail on;
|
|
|
|
set term ^;
|
2022-01-20 17:32:14 +01:00
|
|
|
|
2021-04-26 20:07:00 +02:00
|
|
|
create or alter procedure spro$parse_tag1 as begin end
|
|
|
|
^
|
|
|
|
create or alter procedure spro$parse_tag2 as begin end
|
|
|
|
^
|
|
|
|
create or alter procedure spro$parse_tag3 as begin end
|
|
|
|
^
|
|
|
|
commit
|
|
|
|
^
|
2022-01-20 17:32:14 +01:00
|
|
|
|
2021-04-26 20:07:00 +02:00
|
|
|
execute block as
|
|
|
|
begin
|
|
|
|
execute statement 'drop domain spro$long_string';
|
|
|
|
when any do begin end
|
|
|
|
end
|
|
|
|
^
|
|
|
|
commit
|
|
|
|
^
|
2022-01-20 17:32:14 +01:00
|
|
|
|
2021-04-26 20:07:00 +02:00
|
|
|
create domain spro$long_string as varchar(32765) character set none collate none
|
|
|
|
^
|
|
|
|
commit
|
|
|
|
^
|
2022-01-20 17:32:14 +01:00
|
|
|
|
2021-04-26 20:07:00 +02:00
|
|
|
create or alter procedure spro$parse_tag1(
|
|
|
|
str_in type of spro$long_string,
|
|
|
|
delimeter varchar(10))
|
|
|
|
returns (
|
|
|
|
str_out1 type of spro$long_string,
|
|
|
|
str_out2 type of spro$long_string)
|
|
|
|
as begin
|
|
|
|
suspend;
|
|
|
|
end
|
|
|
|
^
|
2022-01-20 17:32:14 +01:00
|
|
|
|
2021-04-26 20:07:00 +02:00
|
|
|
create or alter procedure spro$parse_tag2(
|
|
|
|
str_in type of spro$long_string,
|
|
|
|
delimeter varchar(10))
|
|
|
|
returns (
|
|
|
|
str_out1 type of spro$long_string,
|
|
|
|
str_out2 varchar(32759))
|
|
|
|
as begin
|
|
|
|
suspend;
|
|
|
|
end
|
|
|
|
^
|
|
|
|
|
|
|
|
create or alter procedure spro$parse_tag3(
|
|
|
|
str_in type of spro$long_string,
|
|
|
|
delimeter varchar(10))
|
|
|
|
returns (
|
|
|
|
str_out01 varchar(32765)
|
|
|
|
,str_out02 varchar(32765)
|
|
|
|
,str_out03 varchar(32765)
|
|
|
|
,str_out04 varchar(32765)
|
|
|
|
,str_out05 varchar(32765)
|
|
|
|
,str_out06 varchar(32765)
|
|
|
|
,str_out07 varchar(32765)
|
|
|
|
,str_out08 varchar(32765)
|
|
|
|
,str_out09 varchar(32765)
|
|
|
|
,str_out10 varchar(32765)
|
|
|
|
,str_out11 varchar(32765)
|
|
|
|
,str_out12 varchar(32765)
|
|
|
|
,str_out13 varchar(32765)
|
|
|
|
,str_out14 varchar(32765)
|
|
|
|
,str_out15 varchar(32765)
|
|
|
|
,str_out16 varchar(32765)
|
|
|
|
,str_out17 varchar(32765)
|
|
|
|
,str_out18 varchar(32765)
|
|
|
|
,str_out19 varchar(32765)
|
|
|
|
,str_out20 varchar(32765)
|
|
|
|
,str_out21 varchar(32765)
|
|
|
|
,str_out22 varchar(32765)
|
|
|
|
,str_out23 varchar(32765)
|
|
|
|
,str_out24 varchar(32765)
|
|
|
|
,str_out25 varchar(32765)
|
|
|
|
,str_out26 varchar(32765)
|
|
|
|
,str_out27 varchar(32765)
|
|
|
|
,str_out28 varchar(32765)
|
|
|
|
,str_out29 varchar(32765)
|
|
|
|
,str_out30 varchar(32765)
|
|
|
|
,str_out31 varchar(32765)
|
|
|
|
,str_out32 varchar(32765)
|
|
|
|
,str_out33 varchar(32765)
|
|
|
|
,str_out34 varchar(32765)
|
|
|
|
,str_out35 varchar(32765)
|
|
|
|
,str_out36 varchar(32765)
|
|
|
|
,str_out37 varchar(32765)
|
|
|
|
,str_out38 varchar(32765)
|
|
|
|
,str_out39 varchar(32765)
|
|
|
|
,str_out40 varchar(32765)
|
|
|
|
,str_out41 varchar(32765)
|
|
|
|
,str_out42 varchar(32765)
|
|
|
|
,str_out43 varchar(32765)
|
|
|
|
,str_out44 varchar(32765)
|
|
|
|
,str_out45 varchar(32765)
|
|
|
|
,str_out46 varchar(32765)
|
|
|
|
,str_out47 varchar(32765)
|
|
|
|
,str_out48 varchar(32765)
|
|
|
|
,str_out49 varchar(32765)
|
|
|
|
,str_out50 varchar(32765)
|
2022-01-20 17:32:14 +01:00
|
|
|
) as
|
2021-04-26 20:07:00 +02:00
|
|
|
begin
|
|
|
|
suspend;
|
|
|
|
end
|
|
|
|
^
|
|
|
|
set term ;^
|
|
|
|
commit;
|
2021-12-22 20:23:11 +01:00
|
|
|
"""
|
2021-04-26 20:07:00 +02:00
|
|
|
|
2022-01-20 17:32:14 +01:00
|
|
|
act = isql_act('db', test_script)
|
2021-04-26 20:07:00 +02:00
|
|
|
|
|
|
|
@pytest.mark.version('>=3.0.1')
|
2022-01-20 17:32:14 +01:00
|
|
|
def test_1(act: Action):
|
2022-01-25 22:55:48 +01:00
|
|
|
act.execute()
|