--CREATE OR REPLACE FUNCTION fnx_GetDispChildXml_privivki("Vactination" integer)
--  RETURNS TABLE(split text) AS
--$BODY$
--	select '6' as split where "Vactination" & 2 = 2
--	union all
--	select '7' as split where "Vactination" & 4 = 4
--	union all
--	select '8' as split where "Vactination" & 8 = 8
--	union all
--	select '9' as split where "Vactination" & 16 = 16
--	union all
--	select '10' as split where "Vactination" & 32 = 32
--	union all
--	select '11' as split where "Vactination" & 64 = 64
--	union all
--	select '12' as split where "Vactination" & 128 = 128
--	union all
--	select '13' as split where "Vactination" & 256 = 256
--	union all
--	select '14' as split where "Vactination" & 512 = 512
--	union all
--	select '15' as split where "Vactination" & 1024 = 1024
--	union all
--	select '16' as split where "Vactination" & 2048 = 2048
--	union all
--	select '18' as split where "Vactination" & 4096 = 4096
--	union all
--	select '19' as split where "Vactination" & 8192 = 8192
--	union all
--	select '20' as split where "Vactination" & 16384 = 16384
--	union all
--	select '21' as split where "Vactination" & 32768 = 32768
--	union all
--	select '22' as split where "Vactination" & 65536 = 65536
--	union all
--	select '23' as split where "Vactination" & 131072 = 131072
--	union all
--	select '24' as split where "Vactination" & 262144 = 262144
--	union all
--	select '25' as split where "Vactination" & 524288 = 524288
--	union all
--	select '26' as split where "Vactination" & 1048576 = 1048576
--	union all
--	select '27' as split where "Vactination" & 2097152 = 2097152
--	union all
--	select '28' as split where "Vactination" & 4194304 = 4194304
--$BODY$
--  LANGUAGE sql VOLATILE
--  COST 100
--  ROWS 30;
--ALTER FUNCTION fnx_GetDispChildXml_privivki(integer)
--  OWNER TO postgres;