2413644 - SELECT INTO ignores leading zeros on literal numeric when determining precision | SAP Knowledge Base Article

SAP Knowledge Base Article - Preview

2413644 - SELECT INTO ignores leading zeros on literal numeric when determining precision

Symptom

In ASE versions prior to 15.0, the precision of a numeric column created usingI a literal value with SELECT INTO was affected by leading zeros in the literal value.
For example:

select 1.0 as c1 into t1  -- would result in a numeric(2,1) column
select 0000000001.0 as c1 into t1 -- would result in a numeric(11,1)

In later versions, the leading zeros are ignored when determining the precision of the column's datatype, both examples would result in a numeric(2,1)

 


Read more...

Environment

  • SAP Adaptive Server Enterprise (ASE) versions 12.5.1 and higher
  • SAP Adaptive Server Enterprise Cluster Edition (ASE CE) all versions

 

Product

SAP Adaptive Server Enterprise 12.5 ; SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 15.7 Cluster Edition ; SAP Adaptive Server Enterprise 16.0 ; Sybase Adaptive Server Enterprise 12.5 ; Sybase Adaptive Server Enterprise 15.0 ; Sybase Adaptive Server Enterprise 15.5 ; Sybase Adaptive Server Enterprise Cluster Edition 15.0 ; Sybase Adaptive Server Enterprise Cluster Edition 15.5 ; Sybase Adaptive Server Enterprise Cluster Edition 15.7

Keywords

Sybase , KBA , BC-SYB-ASE , Sybase ASE Database Platform (non Business Suite) , BC-SYB-ASE-CE , ASE Cluster Edition (Standalone) , 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.