postgresql7.1
select survsimp_survey__new (
:survey_id,
:name,
:short_name,
:description,
:description_html_p,
'f',
't',
'f',
:type,
:user_id,
:package_id
)
select survsimp_variable_id_sequence.nextval
select survsimp_logic_id_sequence.nextval
insert into survsimp_logic
(logic_id, logic)
values
(:logic_id, :logic)