2093416 - Temporary tables return NULL value in subsequent SELECT - SAP ASE | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2093416 - Temporary tables return NULL value in subsequent SELECT - SAP ASE

Symptom

  • Temporary tables return the NULL value in a subsequent SELECT, for example: 

create table #rr (ticket char(8))
insert into #rr values ('CK92706')
select * from #rr

returns:
 
   ticket 

   --------
   CK92706

declare @ticket CHAR(8)
select @ticket = ticket from #rr
select @ticket

returns:
 
    --------

    CK92706

drop table #rr
create table #rr (ticket char(8))
insert into #rr values ('CK92706')
declare @ticket CHAR(8)
select @ticket = ticket from #rr
select @ticket 

returns:
 
   --------

   NULL

  • This occurs only when the value from the column is assigned to a SQL variable.

Read more...

Environment

  • SAP Adaptive Server Enterprise (ASE) 15.0.3
  • SAP Adaptive Server Enterprise (ASE) 15.5
  • SAP Adaptive Server Enterprise (ASE) 15.7

Product

SAP Adaptive Server Enterprise 15.7

Keywords

686209, CR686209, statement cache , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , Bug Filed

About this page

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

Search for additional results

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