#coding:utf-8 """ ID: issue-5654 ISSUE: https://github.com/FirebirdSQL/firebird/issues/5654 TITLE: Regression: could not execute query (select from view with nested view) DESCRIPTION: Test uses queries from ticket but creates user tables instead of rdb$ ones. We ask FB to show explained plan for query. Before fix this caused to '335544382 : request size limit exceeded'. JIRA: CORE-5381 FBTEST: bugs.core_5381 NOTES: [08.11.2024] pzotov Re-implemented. No sense to check execution time. Only explained plan must be verified. Confirmed bug on 3.0.1.32609 (27-sep-2016), got in trace: 2024-11-08T00:42:49.8710 ERROR AT JStatement::prepare 335544382 : request size limit exceeded 2024-11-08T00:42:49.8710 FAILED EXECUTE_STATEMENT_FINISH ... 0 records fetched 135383 ms Checked 3.0.2.32659 (06-jan-2017), got: 2024-11-08T00:39:40.0380 EXECUTE_STATEMENT_FINISH 0 records fetched 2 ms, 11 read(s), 3763 fetch(es) ... Table statistics same for 3.x ... 6.x. [10.11.2024] pzotov Explained plan in FB 4.x changed since 4.0.6.3168: Was: -> Hash Join (inner) -> Table "RDB_FLDS" as "A D5" Full Scan -> Record Buffer (record length: 25) -> Table "RDB_DEPS" as "D3" Full Scan ... Now: -> Hash Join (inner) -> Filter -> Table "RDB_FLDS" as "A D5" Full Scan -> Record Buffer (record length: 25) -> Filter -> Table "RDB_DEPS" as "D3" Full Scan ... Checked on 3.0.13.33794, 4.0.6.3168, 5.0.2.1553, 6.0.0.520 """ import pytest from firebird.qa import * from firebird.driver import DatabaseError init_sql = """ create or alter procedure sp_test as begin end; recreate view test_view as select 1 x from rdb$database; recreate view inner_view as select 1 x from rdb$database; recreate table rdb_types( id int generated by default as identity constraint pk_rdb_types primary key ,type_id int ); recreate table rdb_rels( id int generated by default as identity constraint pk_rdb_rels primary key ,rel_id int ); recreate table rdb_deps( id int generated by default as identity constraint pk_rdb_deps primary key ,dep_type int ); recreate table rdb_colls( id int generated by default as identity constraint pk_rdb_colls primary key ,coll_id int ); recreate table rdb_flds( id int generated by default as identity constraint pk_rdb_flds primary key ,fld_type_id int ); recreate table rdb_csets( id int generated by default as identity constraint pk_rdb_csets primary key ,cset_id int ); recreate table t1(id bigint not null primary key using index pk_t1_id); recreate table t2(id bigint not null primary key using index pk_t2_id); recreate table t3(id bigint not null primary key using index pk_t3_id); recreate table t4(id bigint not null primary key using index pk_t4_id); recreate table t5(id bigint not null primary key using index pk_t5_id); recreate table t6(id bigint not null primary key using index pk_t6_id); recreate table t7(id bigint not null primary key using index pk_t7_id); recreate table t8(id bigint not null primary key using index pk_t8_id); recreate view inner_view as select t1.id from t1 inner join t8 b on b.id = t1.id inner join t2 c on c.id = t1.id left join t4 d on d.id = t1.id inner join t5 e on e.id = t1.id left join t6 f on f.id = t1.id inner join rdb_types g1 on g1.type_id = t1.id inner join rdb_rels g2 on g2.rel_id = t1.id inner join rdb_deps g3 on g3.dep_type = t1.id inner join rdb_colls g4 on g4.coll_id = t1.id inner join rdb_flds g5 on g5.fld_type_id = t1.id inner join rdb_csets g6 on g6.cset_id = t1.id ; recreate view test_view as select t1.id from t1 inner join inner_view on inner_view.id = t1.id inner join t7 on t7.id = t1.id left join t3 on t3.id = t1.id inner join rdb_types d1 on d1.type_id = t1.id inner join rdb_rels d2 on d2.rel_id = t1.id inner join rdb_deps d3 on d3.dep_type = t1.id inner join rdb_colls d4 on d4.coll_id = t1.id inner join rdb_flds d5 on d5.fld_type_id = t1.id ; set term ^; create or alter procedure sp_test as declare c int; begin for execute statement 'select a.id from test_view a inner join rdb_types d1 on d1.type_id = a.id inner join rdb_rels d2 on d2.rel_id = a.id inner join rdb_deps d3 on d3.dep_type = a.id where a.id = 1' into c do begin -- nop -- end end ^ set term ;^ commit; insert into t1(id) values(1); insert into t2(id) select id from t1; insert into t3(id) select id from t1; insert into t4(id) select id from t1; insert into t5(id) select id from t1; insert into t6(id) select id from t1; insert into t7(id) select id from t1; insert into t8(id) select id from t1; insert into rdb_csets (cset_id) values (0); insert into rdb_csets (cset_id) values (1); insert into rdb_csets (cset_id) values (2); insert into rdb_csets (cset_id) values (3); insert into rdb_csets (cset_id) values (4); insert into rdb_csets (cset_id) values (5); insert into rdb_csets (cset_id) values (6); insert into rdb_csets (cset_id) values (10); insert into rdb_csets (cset_id) values (11); insert into rdb_csets (cset_id) values (12); insert into rdb_csets (cset_id) values (21); insert into rdb_csets (cset_id) values (22); insert into rdb_csets (cset_id) values (23); insert into rdb_csets (cset_id) values (34); insert into rdb_csets (cset_id) values (35); insert into rdb_csets (cset_id) values (36); insert into rdb_csets (cset_id) values (37); insert into rdb_csets (cset_id) values (38); insert into rdb_csets (cset_id) values (39); insert into rdb_csets (cset_id) values (40); insert into rdb_csets (cset_id) values (45); insert into rdb_csets (cset_id) values (46); insert into rdb_csets (cset_id) values (13); insert into rdb_csets (cset_id) values (47); insert into rdb_csets (cset_id) values (14); insert into rdb_csets (cset_id) values (50); insert into rdb_csets (cset_id) values (9); insert into rdb_csets (cset_id) values (15); insert into rdb_csets (cset_id) values (16); insert into rdb_csets (cset_id) values (17); insert into rdb_csets (cset_id) values (18); insert into rdb_csets (cset_id) values (48); insert into rdb_csets (cset_id) values (49); insert into rdb_csets (cset_id) values (51); insert into rdb_csets (cset_id) values (52); insert into rdb_csets (cset_id) values (53); insert into rdb_csets (cset_id) values (54); insert into rdb_csets (cset_id) values (55); insert into rdb_csets (cset_id) values (19); insert into rdb_csets (cset_id) values (58); insert into rdb_csets (cset_id) values (59); insert into rdb_csets (cset_id) values (60); insert into rdb_csets (cset_id) values (44); insert into rdb_csets (cset_id) values (56); insert into rdb_csets (cset_id) values (57); insert into rdb_csets (cset_id) values (63); insert into rdb_csets (cset_id) values (64); insert into rdb_csets (cset_id) values (65); insert into rdb_csets (cset_id) values (66); insert into rdb_csets (cset_id) values (67); insert into rdb_csets (cset_id) values (68); insert into rdb_csets (cset_id) values (69); insert into rdb_rels(rel_id) select row_number()over()-1 from rdb$types rows 50; -- insert into rdb_flds (fld_type_id) values (1); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (27); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (23); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (261); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (35); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (7); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (14); insert into rdb_flds (fld_type_id) values (8); insert into rdb_flds (fld_type_id) values (16); insert into rdb_flds (fld_type_id) values (37); insert into rdb_flds (fld_type_id) values (37); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (3); insert into rdb_colls (coll_id) values (4); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (3); insert into rdb_colls (coll_id) values (4); insert into rdb_colls (coll_id) values (5); insert into rdb_colls (coll_id) values (6); insert into rdb_colls (coll_id) values (7); insert into rdb_colls (coll_id) values (8); insert into rdb_colls (coll_id) values (9); insert into rdb_colls (coll_id) values (10); insert into rdb_colls (coll_id) values (11); insert into rdb_colls (coll_id) values (12); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (3); insert into rdb_colls (coll_id) values (4); insert into rdb_colls (coll_id) values (5); insert into rdb_colls (coll_id) values (6); insert into rdb_colls (coll_id) values (7); insert into rdb_colls (coll_id) values (8); insert into rdb_colls (coll_id) values (9); insert into rdb_colls (coll_id) values (10); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (3); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (3); insert into rdb_colls (coll_id) values (4); insert into rdb_colls (coll_id) values (5); insert into rdb_colls (coll_id) values (6); insert into rdb_colls (coll_id) values (7); insert into rdb_colls (coll_id) values (8); insert into rdb_colls (coll_id) values (9); insert into rdb_colls (coll_id) values (10); insert into rdb_colls (coll_id) values (11); insert into rdb_colls (coll_id) values (12); insert into rdb_colls (coll_id) values (14); insert into rdb_colls (coll_id) values (15); insert into rdb_colls (coll_id) values (16); insert into rdb_colls (coll_id) values (17); insert into rdb_colls (coll_id) values (18); insert into rdb_colls (coll_id) values (19); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (3); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (4); insert into rdb_colls (coll_id) values (5); insert into rdb_colls (coll_id) values (6); insert into rdb_colls (coll_id) values (7); insert into rdb_colls (coll_id) values (8); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (3); insert into rdb_colls (coll_id) values (4); insert into rdb_colls (coll_id) values (5); insert into rdb_colls (coll_id) values (6); insert into rdb_colls (coll_id) values (7); insert into rdb_colls (coll_id) values (8); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (3); insert into rdb_colls (coll_id) values (4); insert into rdb_colls (coll_id) values (5); insert into rdb_colls (coll_id) values (6); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (3); insert into rdb_colls (coll_id) values (4); insert into rdb_colls (coll_id) values (5); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (2); insert into rdb_colls (coll_id) values (3); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_colls (coll_id) values (0); insert into rdb_colls (coll_id) values (1); insert into rdb_deps (dep_type) values (4); insert into rdb_deps (dep_type) values (4); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (2); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (15); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (1); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (3); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_deps (dep_type) values (5); insert into rdb_types (type_id) values (14); insert into rdb_types (type_id) values (7); insert into rdb_types (type_id) values (8); insert into rdb_types (type_id) values (9); insert into rdb_types (type_id) values (10); insert into rdb_types (type_id) values (27); insert into rdb_types (type_id) values (35); insert into rdb_types (type_id) values (37); insert into rdb_types (type_id) values (261); insert into rdb_types (type_id) values (40); insert into rdb_types (type_id) values (45); insert into rdb_types (type_id) values (12); insert into rdb_types (type_id) values (13); insert into rdb_types (type_id) values (16); insert into rdb_types (type_id) values (23); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (4); insert into rdb_types (type_id) values (5); insert into rdb_types (type_id) values (6); insert into rdb_types (type_id) values (7); insert into rdb_types (type_id) values (8); insert into rdb_types (type_id) values (9); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (4); insert into rdb_types (type_id) values (5); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (4); insert into rdb_types (type_id) values (5); insert into rdb_types (type_id) values (6); insert into rdb_types (type_id) values (8192); insert into rdb_types (type_id) values (8193); insert into rdb_types (type_id) values (8194); insert into rdb_types (type_id) values (8195); insert into rdb_types (type_id) values (8196); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (4); insert into rdb_types (type_id) values (5); insert into rdb_types (type_id) values (6); insert into rdb_types (type_id) values (7); insert into rdb_types (type_id) values (8); insert into rdb_types (type_id) values (9); insert into rdb_types (type_id) values (10); insert into rdb_types (type_id) values (11); insert into rdb_types (type_id) values (12); insert into rdb_types (type_id) values (13); insert into rdb_types (type_id) values (14); insert into rdb_types (type_id) values (15); insert into rdb_types (type_id) values (16); insert into rdb_types (type_id) values (17); insert into rdb_types (type_id) values (18); insert into rdb_types (type_id) values (19); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (4); insert into rdb_types (type_id) values (5); insert into rdb_types (type_id) values (6); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (4); insert into rdb_types (type_id) values (5); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (4); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (4); insert into rdb_types (type_id) values (5); insert into rdb_types (type_id) values (6); insert into rdb_types (type_id) values (7); insert into rdb_types (type_id) values (8); insert into rdb_types (type_id) values (9); insert into rdb_types (type_id) values (10); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (0); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (4); insert into rdb_types (type_id) values (5); insert into rdb_types (type_id) values (6); insert into rdb_types (type_id) values (10); insert into rdb_types (type_id) values (11); insert into rdb_types (type_id) values (12); insert into rdb_types (type_id) values (21); insert into rdb_types (type_id) values (22); insert into rdb_types (type_id) values (23); insert into rdb_types (type_id) values (34); insert into rdb_types (type_id) values (35); insert into rdb_types (type_id) values (36); insert into rdb_types (type_id) values (37); insert into rdb_types (type_id) values (38); insert into rdb_types (type_id) values (39); insert into rdb_types (type_id) values (40); insert into rdb_types (type_id) values (45); insert into rdb_types (type_id) values (46); insert into rdb_types (type_id) values (13); insert into rdb_types (type_id) values (47); insert into rdb_types (type_id) values (14); insert into rdb_types (type_id) values (50); insert into rdb_types (type_id) values (9); insert into rdb_types (type_id) values (15); insert into rdb_types (type_id) values (16); insert into rdb_types (type_id) values (17); insert into rdb_types (type_id) values (18); insert into rdb_types (type_id) values (48); insert into rdb_types (type_id) values (49); insert into rdb_types (type_id) values (51); insert into rdb_types (type_id) values (52); insert into rdb_types (type_id) values (53); insert into rdb_types (type_id) values (54); insert into rdb_types (type_id) values (55); insert into rdb_types (type_id) values (19); insert into rdb_types (type_id) values (58); insert into rdb_types (type_id) values (59); insert into rdb_types (type_id) values (60); insert into rdb_types (type_id) values (44); insert into rdb_types (type_id) values (56); insert into rdb_types (type_id) values (57); insert into rdb_types (type_id) values (63); insert into rdb_types (type_id) values (64); insert into rdb_types (type_id) values (65); insert into rdb_types (type_id) values (66); insert into rdb_types (type_id) values (67); insert into rdb_types (type_id) values (68); insert into rdb_types (type_id) values (69); insert into rdb_types (type_id) values (1); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (2); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (3); insert into rdb_types (type_id) values (4); insert into rdb_types (type_id) values (5); insert into rdb_types (type_id) values (6); insert into rdb_types (type_id) values (10); insert into rdb_types (type_id) values (11); insert into rdb_types (type_id) values (12); insert into rdb_types (type_id) values (21); insert into rdb_types (type_id) values (21); insert into rdb_types (type_id) values (21); insert into rdb_types (type_id) values (22); insert into rdb_types (type_id) values (22); insert into rdb_types (type_id) values (22); insert into rdb_types (type_id) values (23); insert into rdb_types (type_id) values (23); insert into rdb_types (type_id) values (23); insert into rdb_types (type_id) values (34); insert into rdb_types (type_id) values (34); insert into rdb_types (type_id) values (34); insert into rdb_types (type_id) values (35); insert into rdb_types (type_id) values (35); insert into rdb_types (type_id) values (36); insert into rdb_types (type_id) values (36); insert into rdb_types (type_id) values (37); insert into rdb_types (type_id) values (37); insert into rdb_types (type_id) values (38); insert into rdb_types (type_id) values (38); insert into rdb_types (type_id) values (39); insert into rdb_types (type_id) values (39); insert into rdb_types (type_id) values (39); insert into rdb_types (type_id) values (40); insert into rdb_types (type_id) values (40); insert into rdb_types (type_id) values (40); insert into rdb_types (type_id) values (45); insert into rdb_types (type_id) values (46); insert into rdb_types (type_id) values (13); insert into rdb_types (type_id) values (47); insert into rdb_types (type_id) values (14); insert into rdb_types (type_id) values (9); insert into rdb_types (type_id) values (15); insert into rdb_types (type_id) values (16); insert into rdb_types (type_id) values (17); insert into rdb_types (type_id) values (18); insert into rdb_types (type_id) values (48); insert into rdb_types (type_id) values (49); insert into rdb_types (type_id) values (51); insert into rdb_types (type_id) values (52); insert into rdb_types (type_id) values (53); insert into rdb_types (type_id) values (54); insert into rdb_types (type_id) values (55); insert into rdb_types (type_id) values (58); insert into rdb_types (type_id) values (59); insert into rdb_types (type_id) values (60); insert into rdb_types (type_id) values (65); insert into rdb_types (type_id) values (44); insert into rdb_types (type_id) values (44); insert into rdb_types (type_id) values (44); insert into rdb_types (type_id) values (56); insert into rdb_types (type_id) values (56); commit; set term ^; execute block as begin for select trim(ri.rdb$index_name) as idx_name from rdb$indices ri where ri.rdb$system_flag is distinct from 1 as cursor c do begin execute statement 'set statistics index ' || c.idx_name ; end end ^ set term ;^ commit; """ db = db_factory(init = init_sql) act = python_act('db') #----------------------------------------------------------- def replace_leading(source, char="."): stripped = source.lstrip() return char * (len(source) - len(stripped)) + stripped #----------------------------------------------------------- @pytest.mark.version('>=3.0.1') def test_1(act: Action, capsys): test_sql = """ select count(*) from test_view a inner join rdb_types d1 on d1.type_id = a.id inner join rdb_rels d2 on d2.rel_id = a.id inner join rdb_deps d3 on d3.dep_type = a.id where a.id = 1 ; """ with act.db.connect() as con: cur = con.cursor() ps = None try: ps = cur.prepare(test_sql) # Print explained plan with padding eash line by dots in order to see indentations: print( '\n'.join([replace_leading(s) for s in ps.detailed_plan.split('\n')]) ) print('') except DatabaseError as e: print(e.__str__()) print(e.gds_codes) finally: if ps: ps.free() expected_stdout_3x = """ Select Expression ....-> Aggregate ........-> Filter ............-> Hash Join (inner) ................-> Filter ....................-> Table "RDB_FLDS" as "A D5" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_DEPS" as "D3" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_DEPS" as "A D3" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_TYPES" as "D1" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_TYPES" as "A D1" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_COLLS" as "A D4" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_RELS" as "D2" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_RELS" as "A D2" Full Scan ................-> Record Buffer (record length: 359) ....................-> Filter ........................-> Nested Loop Join (outer) ............................-> Filter ................................-> Hash Join (inner) ....................................-> Filter ........................................-> Table "RDB_FLDS" as "A INNER_VIEW G5" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Filter ............................................-> Table "RDB_DEPS" as "A INNER_VIEW G3" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Filter ............................................-> Table "RDB_TYPES" as "A INNER_VIEW G1" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Filter ............................................-> Table "RDB_COLLS" as "A INNER_VIEW G4" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Filter ............................................-> Table "RDB_CSETS" as "A INNER_VIEW G6" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Filter ............................................-> Table "RDB_RELS" as "A INNER_VIEW G2" Full Scan ....................................-> Record Buffer (record length: 208) ........................................-> Nested Loop Join (inner) ............................................-> Nested Loop Join (outer) ................................................-> Nested Loop Join (inner) ....................................................-> Nested Loop Join (outer) ........................................................-> Nested Loop Join (inner) ............................................................-> Filter ................................................................-> Table "T1" as "A INNER_VIEW T1" Access By ID ....................................................................-> Bitmap ........................................................................-> Index "PK_T1_ID" Unique Scan ............................................................-> Filter ................................................................-> Table "T8" as "A INNER_VIEW B" Access By ID ....................................................................-> Bitmap ........................................................................-> Index "PK_T8_ID" Unique Scan ............................................................-> Filter ................................................................-> Table "T2" as "A INNER_VIEW C" Access By ID ....................................................................-> Bitmap ........................................................................-> Index "PK_T2_ID" Unique Scan ........................................................-> Filter ............................................................-> Table "T4" as "A INNER_VIEW D" Access By ID ................................................................-> Bitmap ....................................................................-> Index "PK_T4_ID" Unique Scan ....................................................-> Filter ........................................................-> Table "T5" as "A INNER_VIEW E" Access By ID ............................................................-> Bitmap ................................................................-> Index "PK_T5_ID" Unique Scan ................................................-> Filter ....................................................-> Table "T6" as "A INNER_VIEW F" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T6_ID" Unique Scan ............................................-> Nested Loop Join (inner) ................................................-> Filter ....................................................-> Table "T1" as "A T1" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T1_ID" Unique Scan ................................................-> Filter ....................................................-> Table "T7" as "A T7" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T7_ID" Unique Scan ............................-> Filter ................................-> Table "T3" as "A T3" Access By ID ....................................-> Bitmap ........................................-> Index "PK_T3_ID" Unique Scan """ expected_stdout_4x = """ Select Expression ....-> Aggregate ........-> Filter ............-> Hash Join (inner) ................-> Filter ....................-> Table "RDB_FLDS" as "A D5" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_DEPS" as "D3" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_DEPS" as "A D3" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_TYPES" as "D1" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_COLLS" as "A D4" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_TYPES" as "A D1" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_RELS" as "D2" Full Scan ................-> Record Buffer (record length: 25) ....................-> Filter ........................-> Table "RDB_RELS" as "A D2" Full Scan ................-> Record Buffer (record length: 359) ....................-> Filter ........................-> Nested Loop Join (outer) ............................-> Filter ................................-> Hash Join (inner) ....................................-> Filter ........................................-> Table "RDB_FLDS" as "A INNER_VIEW G5" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Filter ............................................-> Table "RDB_DEPS" as "A INNER_VIEW G3" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Filter ............................................-> Table "RDB_COLLS" as "A INNER_VIEW G4" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Filter ............................................-> Table "RDB_TYPES" as "A INNER_VIEW G1" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Filter ............................................-> Table "RDB_CSETS" as "A INNER_VIEW G6" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Filter ............................................-> Table "RDB_RELS" as "A INNER_VIEW G2" Full Scan ....................................-> Record Buffer (record length: 208) ........................................-> Nested Loop Join (inner) ............................................-> Nested Loop Join (outer) ................................................-> Nested Loop Join (inner) ....................................................-> Nested Loop Join (outer) ........................................................-> Nested Loop Join (inner) ............................................................-> Filter ................................................................-> Table "T1" as "A INNER_VIEW T1" Access By ID ....................................................................-> Bitmap ........................................................................-> Index "PK_T1_ID" Unique Scan ............................................................-> Filter ................................................................-> Table "T8" as "A INNER_VIEW B" Access By ID ....................................................................-> Bitmap ........................................................................-> Index "PK_T8_ID" Unique Scan ............................................................-> Filter ................................................................-> Table "T2" as "A INNER_VIEW C" Access By ID ....................................................................-> Bitmap ........................................................................-> Index "PK_T2_ID" Unique Scan ........................................................-> Filter ............................................................-> Table "T4" as "A INNER_VIEW D" Access By ID ................................................................-> Bitmap ....................................................................-> Index "PK_T4_ID" Unique Scan ....................................................-> Filter ........................................................-> Table "T5" as "A INNER_VIEW E" Access By ID ............................................................-> Bitmap ................................................................-> Index "PK_T5_ID" Unique Scan ................................................-> Filter ....................................................-> Table "T6" as "A INNER_VIEW F" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T6_ID" Unique Scan ............................................-> Nested Loop Join (inner) ................................................-> Filter ....................................................-> Table "T1" as "A T1" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T1_ID" Unique Scan ................................................-> Filter ....................................................-> Table "T7" as "A T7" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T7_ID" Unique Scan ............................-> Filter ................................-> Table "T3" as "A T3" Access By ID ....................................-> Bitmap ........................................-> Index "PK_T3_ID" Unique Scan """ expected_stdout_5x = """ Select Expression ....-> Aggregate ........-> Filter ............-> Hash Join (inner) ................-> Table "RDB_FLDS" as "A D5" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_RELS" as "A D2" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_RELS" as "D2" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_TYPES" as "A D1" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_COLLS" as "A D4" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_TYPES" as "D1" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_DEPS" as "A D3" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_DEPS" as "D3" Full Scan ................-> Record Buffer (record length: 359) ....................-> Filter ........................-> Nested Loop Join (outer) ............................-> Filter ................................-> Hash Join (inner) ....................................-> Table "RDB_FLDS" as "A INNER_VIEW G5" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Table "RDB_RELS" as "A INNER_VIEW G2" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Table "RDB_CSETS" as "A INNER_VIEW G6" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Table "RDB_TYPES" as "A INNER_VIEW G1" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Table "RDB_COLLS" as "A INNER_VIEW G4" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Table "RDB_DEPS" as "A INNER_VIEW G3" Full Scan ....................................-> Record Buffer (record length: 208) ........................................-> Nested Loop Join (inner) ............................................-> Nested Loop Join (outer) ................................................-> Nested Loop Join (inner) ....................................................-> Filter ........................................................-> Nested Loop Join (outer) ............................................................-> Nested Loop Join (inner) ................................................................-> Filter ....................................................................-> Table "T1" as "A INNER_VIEW T1" Access By ID ........................................................................-> Bitmap ............................................................................-> Index "PK_T1_ID" Unique Scan ................................................................-> Filter ....................................................................-> Table "T8" as "A INNER_VIEW B" Access By ID ........................................................................-> Bitmap ............................................................................-> Index "PK_T8_ID" Unique Scan ................................................................-> Filter ....................................................................-> Table "T2" as "A INNER_VIEW C" Access By ID ........................................................................-> Bitmap ............................................................................-> Index "PK_T2_ID" Unique Scan ............................................................-> Filter ................................................................-> Table "T4" as "A INNER_VIEW D" Access By ID ....................................................................-> Bitmap ........................................................................-> Index "PK_T4_ID" Unique Scan ....................................................-> Filter ........................................................-> Table "T5" as "A INNER_VIEW E" Access By ID ............................................................-> Bitmap ................................................................-> Index "PK_T5_ID" Unique Scan ................................................-> Filter ....................................................-> Table "T6" as "A INNER_VIEW F" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T6_ID" Unique Scan ............................................-> Nested Loop Join (inner) ................................................-> Filter ....................................................-> Table "T1" as "A T1" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T1_ID" Unique Scan ................................................-> Filter ....................................................-> Table "T7" as "A T7" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T7_ID" Unique Scan ............................-> Filter ................................-> Table "T3" as "A T3" Access By ID ....................................-> Bitmap ........................................-> Index "PK_T3_ID" Unique Scan """ expected_stdout_6x = """ Select Expression ....-> Aggregate ........-> Filter ............-> Hash Join (inner) (keys: 1, total key length: 8) ................-> Table "RDB_FLDS" as "A D5" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_RELS" as "A D2" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_RELS" as "D2" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_TYPES" as "A D1" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_COLLS" as "A D4" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_TYPES" as "D1" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_DEPS" as "A D3" Full Scan ................-> Record Buffer (record length: 25) ....................-> Table "RDB_DEPS" as "D3" Full Scan ................-> Record Buffer (record length: 359) ....................-> Filter ........................-> Nested Loop Join (outer) ............................-> Filter ................................-> Hash Join (inner) (keys: 1, total key length: 8) ....................................-> Table "RDB_FLDS" as "A INNER_VIEW G5" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Table "RDB_RELS" as "A INNER_VIEW G2" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Table "RDB_CSETS" as "A INNER_VIEW G6" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Table "RDB_TYPES" as "A INNER_VIEW G1" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Table "RDB_COLLS" as "A INNER_VIEW G4" Full Scan ....................................-> Record Buffer (record length: 25) ........................................-> Table "RDB_DEPS" as "A INNER_VIEW G3" Full Scan ....................................-> Record Buffer (record length: 208) ........................................-> Nested Loop Join (inner) ............................................-> Nested Loop Join (outer) ................................................-> Nested Loop Join (inner) ....................................................-> Filter ........................................................-> Nested Loop Join (outer) ............................................................-> Nested Loop Join (inner) ................................................................-> Filter ....................................................................-> Table "T1" as "A INNER_VIEW T1" Access By ID ........................................................................-> Bitmap ............................................................................-> Index "PK_T1_ID" Unique Scan ................................................................-> Filter ....................................................................-> Table "T8" as "A INNER_VIEW B" Access By ID ........................................................................-> Bitmap ............................................................................-> Index "PK_T8_ID" Unique Scan ................................................................-> Filter ....................................................................-> Table "T2" as "A INNER_VIEW C" Access By ID ........................................................................-> Bitmap ............................................................................-> Index "PK_T2_ID" Unique Scan ............................................................-> Filter ................................................................-> Table "T4" as "A INNER_VIEW D" Access By ID ....................................................................-> Bitmap ........................................................................-> Index "PK_T4_ID" Unique Scan ....................................................-> Filter ........................................................-> Table "T5" as "A INNER_VIEW E" Access By ID ............................................................-> Bitmap ................................................................-> Index "PK_T5_ID" Unique Scan ................................................-> Filter ....................................................-> Table "T6" as "A INNER_VIEW F" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T6_ID" Unique Scan ............................................-> Nested Loop Join (inner) ................................................-> Filter ....................................................-> Table "T1" as "A T1" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T1_ID" Unique Scan ................................................-> Filter ....................................................-> Table "T7" as "A T7" Access By ID ........................................................-> Bitmap ............................................................-> Index "PK_T7_ID" Unique Scan ............................-> Filter ................................-> Table "T3" as "A T3" Access By ID ....................................-> Bitmap ........................................-> Index "PK_T3_ID" Unique Scan """ act.expected_stdout = expected_stdout_3x if act.is_version('<4') else expected_stdout_4x if act.is_version('<5') else expected_stdout_5x if act.is_version('<6') else expected_stdout_6x act.stdout = capsys.readouterr().out assert act.clean_stdout == act.clean_expected_stdout