|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-05-20 15:58 UTC] sixd@php.net
[2008-05-20 17:07 UTC] smelban at norwood dot com
[2008-05-21 21:41 UTC] sixd@php.net
[2016-03-08 01:03 UTC] sixd@php.net
-Package: Oracle related
+Package: OCI8 related
-Assigned To:
+Assigned To: sixd
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Feb 04 01:00:01 2026 UTC |
Description: ------------ We just recently upgraded from Oracle 10g to Oracle 11g. Since that move the ocicolumnscale and ocicolumnprecision functions have stopped returning the column length. Windows 2003 Enterprise Server Zend Core 2.5.0 PHP 5.2.5 Reproduce code: --------------- // mynumber field is a 10,4 decimal $sql = "SELECT mynumber FROM TABLENAME"; $R = OCIParse($c, $sql); OCIExecute($R); while (OCIFetch($R)) { $column_type = ocicolumntype($R, $i); if( $column_type == "NUMBER" ) { print ocicolumnscale($R, $i ) . "\n"; print ocicolumnprecision($R, $i ) . "\n"; } } Expected result: ---------------- Should Return 10 4 Actual result: -------------- Returns 0 0