Followup to r57102, use already existing sequence name so as to not break DB2 and...
authorOverlordQ <overlordq@users.mediawiki.org>
Wed, 14 Oct 2009 04:28:22 +0000 (04:28 +0000)
committerOverlordQ <overlordq@users.mediawiki.org>
Wed, 14 Oct 2009 04:28:22 +0000 (04:28 +0000)
includes/Article.php
includes/Category.php
maintenance/ora/tables.sql

index 6d43612..6de0641 100644 (file)
@@ -4074,7 +4074,7 @@ class Article {
                }
                $insertRows = array();
                foreach( $insertCats as $cat ) {
-                       $insertRows[] = array(  'cat_id' => $dbw->nextSequenceValue( 'category_cat_id_val' ),
+                       $insertRows[] = array(  'cat_id' => $dbw->nextSequenceValue( 'category_id_seq' ),
                                                                                                                        'cat_title' => $cat );
                }
                $dbw->insert( 'category', $insertRows, __METHOD__, 'IGNORE' );
index b63685e..ba52b94 100644 (file)
@@ -246,7 +246,7 @@ class Category {
                } else {
                        # Let's be sure that the row exists in the table.  We don't need to
                        # do this if we got the row from the table in initialization!
-                       $seqVal = $dbw->nextSequenceValue( 'category_cat_id_val' );
+                       $seqVal = $dbw->nextSequenceValue( 'category_id_seq' );
                        $dbw->insert(
                                'category',
                                array(  'cat_id' => $seqVal, 
index 20ae33a..f7dcad3 100644 (file)
@@ -163,7 +163,7 @@ CREATE UNIQUE INDEX &mw_prefix.categorylinks_u01 ON &mw_prefix.categorylinks (cl
 CREATE INDEX &mw_prefix.categorylinks_i01 ON &mw_prefix.categorylinks (cl_to,cl_sortkey,cl_from);
 CREATE INDEX &mw_prefix.categorylinks_i02 ON &mw_prefix.categorylinks (cl_to,cl_timestamp);
 
-CREATE SEQUENCE category_cat_id_val;
+CREATE SEQUENCE category_id_seq;
 CREATE TABLE &mw_prefix.category (
   cat_id NUMBER NOT NULL,
   cat_title VARCHAR2(255) NOT NULL,