MyFirstUDRKit/test/testudrkit-tests.dml

53 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-01-26 16:13:50 +01:00
set stats on;
set bail off;
select * from test_div;
set stats off;
set bail on;
select FLAGGED (190, 0) from rdb$database;
select FLAGGED (191, 0) from rdb$database;
commit;
2023-02-02 16:11:52 +01:00
execute procedure load_blob(1);
execute procedure load_blob(2);
execute procedure load_blob(3);
execute procedure load_blob(4);
commit;
2023-02-03 11:43:15 +01:00
select cast ( description as varchar(16) ) as DESCRIPTION
2023-02-02 16:11:52 +01:00
, file_type
, cast (left(source_file,32) as varchar(32)) as source_file
, source_status
2023-02-03 11:43:15 +01:00
, cast (left(target_file,32) as varchar(32)) as target_file
, target_status
, target_bytes
2023-02-02 16:11:52 +01:00
from test_blobs;
commit;
2023-02-03 11:43:15 +01:00
set term ^;
shell
mkdir --verbose /tmp/testudrkit
ls /tmp/testudrkit
^
set term ;^
execute procedure save_blob(1, '/tmp/testudrkit/fb.conf' );
execute procedure save_blob(2, '/tmp/testudrkit/fb.log' );
commit;
select cast ( description as varchar(16) ) as DESCRIPTION
, file_type
, cast (left(source_file,32) as varchar(32)) as source_file
, source_status
, cast (left(target_file,32) as varchar(32)) as target_file
, target_status
, cast (target_bytes as varchar(16) ) as target_bytes
from test_blobs;
commit;