postgresql7.1
update ec_user_class_user_map
set user_class_approved_p='t', last_modified=current_timestamp, last_modifying_user=:admin_user_id, modified_ip_address='[DoubleApos [ns_conn peeraddr]]'
where user_id=:user_id and user_class_id=:user_class_id
insert into ec_user_class_user_map
(user_id, user_class_id, user_class_approved_p, last_modified, last_modifying_user, modified_ip_address)
values
(:user_id, :user_class_id, 't', current_timestamp, :user_id, '[DoubleApos [ns_conn peeraddr]]')