[jboss-svn-commits] JBL Code SVN: r23750 - labs/jbosslabs/trunk/portal-extensions/jboss-forums-migration.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Nov 6 06:51:22 EST 2008
Author: szimano
Date: 2008-11-06 06:51:22 -0500 (Thu, 06 Nov 2008)
New Revision: 23750
Modified:
labs/jbosslabs/trunk/portal-extensions/jboss-forums-migration/procedure.sql
Log:
prcuderu without cs.
Modified: labs/jbosslabs/trunk/portal-extensions/jboss-forums-migration/procedure.sql
===================================================================
--- labs/jbosslabs/trunk/portal-extensions/jboss-forums-migration/procedure.sql 2008-11-06 11:49:48 UTC (rev 23749)
+++ labs/jbosslabs/trunk/portal-extensions/jboss-forums-migration/procedure.sql 2008-11-06 11:51:22 UTC (rev 23750)
@@ -7,10 +7,10 @@
BEGIN
DECLARE done INT DEFAULT 0;
DECLARE indx,id INT;
- DECLARE cur1 CURSOR FOR SELECT j.communityID FROM cs.jiveCommunity j WHERE j.communityID >= fromID and j.communityID <= toID;
+ DECLARE cur1 CURSOR FOR SELECT j.communityID FROM jiveCommunity j WHERE j.communityID >= fromID and j.communityID <= toID;
DECLARE CONTINUE HANDLER FOR NOT FOUND SET `done` = 1;
- SELECT j.lft - 1 INTO indx from cs.jiveCommunity j WHERE j.name = "forum";
+ SELECT j.lft - 1 INTO indx from jiveCommunity j WHERE j.name = "forum";
OPEN cur1;
@@ -18,15 +18,15 @@
select indx + 2 into indx;
FETCH cur1 INTO id;
IF NOT done THEN
- update cs.jiveCommunity SET lft=indx, rgt=indx+1 where cs.jiveCommunity.communityID = id;
+ update jiveCommunity SET lft=indx, rgt=indx+1 where jiveCommunity.communityID = id;
END IF;
UNTIL done END REPEAT;
-- update forum rgt
- update cs.jiveCommunity SET rgt=indx where cs.jiveCommunity.name = "forum";
+ update jiveCommunity SET rgt=indx where jiveCommunity.name = "forum";
-- update main rgt
- update cs.jiveCommunity SET rgt=indx+1 where cs.jiveCommunity.communityID = 1;
+ update jiveCommunity SET rgt=indx+1 where jiveCommunity.communityID = 1;
CLOSE cur1;
END;
@@ -37,7 +37,7 @@
CREATE PROCEDURE deleteNew (fromID INT, toID INT)
LANGUAGE SQL
BEGIN
- delete from cs.jiveCommunity where cs.jiveCommunity.communityID >= fromID and cs.jiveCommunity.communityID <= toID;
+ delete from jiveCommunity where jiveCommunity.communityID >= fromID and jiveCommunity.communityID <= toID;
END;
//
More information about the jboss-svn-commits
mailing list