Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Weird behaviour/bug with sequences on 090?

$
0
0

Hi all,

 

I was looking at the docs here:

 

CREATE SEQUENCE - SAP HANA SQL and System Views Reference - SAP Library

 

and I decided to try it ...

 

CREATE SEQUENCE seq START WITH 11;

CREATE TABLE target (a INT, b INT);

SELECT seq.NEXTVAL FROM DUMMY;

 

SELECT seq.CURRVAL FROM DUMMY;

 

INSERT INTO target VALUES ( seq.NEXTVAL, seq.NEXTVAL);

SELECT * FROM target;

 

but my results are NEXTVAL = 11, CURRVAL = 11 and A, B are 12, 12 ... not 12, 13 as stated in the docs ... Is this a bug?

 

.r.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>