Select LPAD Through OCI Gives Wrong Length Result
Last updated on JULY 05, 2017
Applies to:Oracle Server - Enterprise Edition - Version: 126.96.36.199
Information in this document applies to any platform.
After upgrading the current production environment from Oracle 9i to Oracle 188.8.131.52 or 184.108.40.206 a SQL SELECT returns a different length when using the LPAD function within an OCI 7 application.
Here is the SQL being executed using OCI: "select lpad('abcd',6,'z') from dual"
Against an Oracle 9i environment the result is a length of 6.
Against an Oracle 11g 220.127.116.11 or 18.104.22.168 environment the result is a length of 4000.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms