Symptom
When we run the convert function with a numeric type field, ASE accepts and generates an incorrect result:
- select substring(30466907000101,1,14)
Result: 0x00001bb5a12b4d25
- select convert(numeric(14),substring(30466907000101,1,14))
Result:119011355469
Read more...
Environment
- SAP Adaptive Server Enterprise 15.7
- SAP Adaptive Server Enterprise 16.0
Product
SAP Adaptive Server Enterprise 15.7 ; SAP Adaptive Server Enterprise 16.0
Keywords
substring substring() function numericc datatype incorrect behavior result set binary , 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.