SAP Knowledge Base Article - Preview

2486226 - Why does the function returns the same result when the 'Null' value is used? - SAP ASE

Symptom

When the 'Null' value or constant value is used as a input parameter, the return value of function is the same regardless of the number of returned rows.

select a, dbo.sp_f_nextval('user_action_seq', NULL) from zzz
go
 a
 -------------------- ---------------------------------
 abc                                                 1
 def                                                  1

select a, dbo.sp_f_nextval('user_action_seq', a) from zzz
go
 a
 -------------------- ---------------------------------
 abc                                                 2
 def                                                  3


Read more...

Environment

SAP Adaptive Server Enterprise (ASE)

 

Product

SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0

Keywords

KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , How To

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.