Trigger fix for blojsom-full-initial-data-oracle.sql

View: New views
1 Messages — Rating Filter:   Alert me  

Trigger fix for blojsom-full-initial-data-oracle.sql

by Lund, Kurt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

In order to successful create new users, I had to modify the blojsom-full-initial-data-oracle.sql file as follows:

 

Add:

DROP TRIGGER Blojsom_user_md_id_auto;

CREATE OR REPLACE TRIGGER Blojsom_user_md_id_auto

BEFORE INSERT ON Blojsom_DBUserMetadata FOR EACH ROW

BEGIN

                IF :new.user_metadata_id IS NULL THEN

                                select Blojsom_user_md_id_Seq.nextval INTO :new.user_metadata_id FROM DUAL;

                END IF;

END;

/

 

 

After:

DROP SEQUENCE Blojsom_user_md_id_Seq;

CREATE SEQUENCE Blojsom_user_md_id_Seq START WITH 1 INCREMENT BY 1;

 

 

Hope this helps,

Kurt Lund

lund@...


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Blojsom-users mailing list
Blojsom-users@...
https://lists.sourceforge.net/lists/listinfo/blojsom-users