Hi everyone
Well I am still getting the errors regarding the plpgsql error
messages for the data models and thought I would post some more info
to see if I am missing something.
The package I am working on is the wp-slim one and I am having a
couple of nagging problems with the drop file for the datamodel. These
problems all have to do with the acs-content-repository which has
commands for content_type__drop_attribute and
content_folder__unregister_content_type.
Firstly the content_folder__unregister_content_type preoblem:
CODE:
create function inline_7 ()
returns integer as'
begin
PERFORM
content_folder__unregister_content_type(content_item_globals.c_root_folder_id,''cr_wp_presentation'',''f'');
PERFORM
content_folder__unregister_content_type(content_item_globals.c_root_folder_id,''cr_wp_presentation_audience'',''f'');
PERFORM
content_folder__unregister_content_type(content_item_globals.c_root_folder_id,''cr_wp_presentation_background'',''f'');
PERFORM
content_folder__unregister_content_type(content_item_gloabals.c_root_folder_id,''cr_wp_slide'',''f'');
PERFORM
content_folder__unregister_content_type(content_item_globals.c_root_folder_id,''cr_wp_slide_preamble'',''f'');
PERFORM
content_folder__unregister_content_type(content_item_gloabals.c_root_folder_id,''cr_wp_slide_postamble'',''f'');
PERFORM
content_folder__unregister_content_type(content_item_gloabals.c_root_folder_id,''cr_wp_slide_bullet_items'',''f'');
return 0;
end;' language 'plpgsql';
select inline_7 ();
drop function inline_7 ();
ERROR MESSAGE:
psql:wp-slim-drop1.sql:170: NOTICE: identifier
"content_folder__unregister_content_type" will be truncated to
"content_folder__unregister_cont"
psql:wp-slim-drop1.sql:170: NOTICE: plpgsql: ERROR during compile of
content_folder__unregister_cont near line 35
psql:wp-slim-drop1.sql:170: ERROR: parse error at or near ";"
I have tried everything I could think of but nothing seems to fix up
this problem.
now the content_type__drop_attribute problem
CODE:
create function inline_9 ()
returns integer as'
begin
PERFORM
content_type__drop_attribute(''cr_wp_presentation'',''pres_title'',''f'');
PERFORM
content_type__drop_attribute(''cr_wp_presentation'',''page_signature'',''f'');
PERFORM
content_type__drop_attribute(''cr_wp_presentation'',''copyright_notice'',''f'');
PERFORM
content_type__drop_attribute(''cr_wp_presentation'',''style'',''f'');
PERFORM
content_type__drop_attribute(''cr_wp_presentation'',''public_p'',''f'');
PERFORM
content_type__drop_attribute(''cr_wp_presentation'',''show_modified_p'',''f'');
PERFORM
content_type__drop_attribute(''cr_wp_slide'',''sort_key'',''f'');
PERFORM
content_type__drop_attribute(''cr_wp_slide'',''slide_title'',''f'');
PERFORM
content_type__drop_attribute(''cr_wp_slide'',''include_in_outline_p'',''f'');
PERFORM
content_type__drop_attribute(''cr_wp_slide'',''context_break_after_p'',''f'');
PERFORM
content_type__drop_attribute(''cr_wp_slide'',''style'',''f'');
return 0;
end;' language 'plpgsql';
select inline_9 ();
drop function inline_9 ();
ERROR MESSAGE:
psql:wp-slim-drop1.sql:205: NOTICE: plpgsql: ERROR during compile of
content_type__drop_attribute near line 24
psql:wp-slim-drop1.sql:205: ERROR: parse error at or near
"content_type"
I really dont know what is wrong and would appreciate some help.
Thanks
Jack