db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From banda...@apache.org
Subject svn commit: r372660 - in /db/derby/code/trunk/java: engine/org/apache/derby/impl/sql/catalog/SYSCOLUMNSRowFactory.java testing/org/apache/derbyTesting/functionTests/master/autoincrement.out
Date Thu, 26 Jan 2006 23:35:17 GMT
Author: bandaram
Date: Thu Jan 26 15:35:12 2006
New Revision: 372660

URL: http://svn.apache.org/viewcvs?rev=372660&view=rev
Log:
DERBY-783: Follow up to previous checkins for this bug. Set START value in catalog to the
RESTART value specified in ALTER TABLE statement.

Submitted by Mamta Satoor (msatoor@gmail.com)

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SYSCOLUMNSRowFactory.java
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/autoincrement.out

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SYSCOLUMNSRowFactory.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SYSCOLUMNSRowFactory.java?rev=372660&r1=372659&r2=372660&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SYSCOLUMNSRowFactory.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/SYSCOLUMNSRowFactory.java
Thu Jan 26 15:35:12 2006
@@ -281,8 +281,7 @@
 			//next value to be generated in the SYSCOLUMNS table
 			ColumnDescriptor  column = (ColumnDescriptor)td;
 			row.setColumn(SYSCOLUMNS_AUTOINCREMENTVALUE, new SQLLongint(autoincStart));
-			row.setColumn(SYSCOLUMNS_AUTOINCREMENTSTART, new SQLLongint(
-					column.getTableDescriptor().getColumnDescriptor(colName).getAutoincStart()));
+			row.setColumn(SYSCOLUMNS_AUTOINCREMENTSTART, new SQLLongint(autoincStart));
 			row.setColumn(SYSCOLUMNS_AUTOINCREMENTINC, new SQLLongint(
 					column.getTableDescriptor().getColumnDescriptor(colName).getAutoincInc()));
 		}

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/autoincrement.out
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/autoincrement.out?rev=372660&r1=372659&r2=372660&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/autoincrement.out
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/autoincrement.out
Thu Jan 26 15:35:12 2006
@@ -1813,7 +1813,7 @@
 from sys.syscolumns where COLUMNNAME = 'C11';
 COLUMNNAME                                                                              
                                       |AUTOINCREMENTVALUE  |AUTOINCREMENTSTART  |AUTOINCREMENTINC
   
 -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-C11                                                                                     
                                       |2                   |1                   |1      
            
+C11                                                                                     
                                       |2                   |2                   |1      
            
 ij(CONN2)> insert into t1(c12) values(3);
 1 row inserted/updated/deleted
 ij(CONN2)> select * from t1;



Mime
View raw message