Update of /cvsroot/monetdb/sql/src/storage/bat
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv17098/src/storage/bat
Modified Files:
Tag: SQL_2-16
bat_sequence.mx
Log Message:
fixed bug in sequence numbers (cached value is now correctly incremented
with increment*cacheinc)
Index: bat_sequence.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/bat/bat_sequence.mx,v
retrieving revision 1.17.2.4
retrieving revision 1.17.2.5
diff -u -d -r1.17.2.4 -r1.17.2.5
--- bat_sequence.mx 13 Feb 2007 16:35:52 -0000 1.17.2.4
+++ bat_sequence.mx 15 Feb 2007 22:23:20 -0000 1.17.2.5
@@ -109,7 +109,7 @@
}
s->called = 0;
s->cur = start;
- s->cached = start + seq->cacheinc;
+ s->cached = start;
/* handle min/max and cycle */
if ((seq->maxvalue && s->cur > seq->maxvalue) ||
(seq->minvalue && s->cur < seq->minvalue))
@@ -168,7 +168,7 @@
nr = s->cur;
*val = nr;
if (save || nr == s->cached) {
- s->cached = nr + seq->cacheinc;
+ s->cached = nr + seq->cacheinc*seq->increment;
sql_update_sequence_cache(seq, s->cached);
store_unlock();
return 1;
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins