postgresql7.1
select
category_id_sequence.nextval
insert into site_wide_category_map
(map_id, category_id,
on_which_table, on_what_id, mapping_date, one_line_item_desc)
values (site_wide_cat_map_id_seq.nextval, :category_id, 'survsimp_surveys',
:survey_id, current_timestamp, :one_line_item_desc)