|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-07-06 18:53 UTC] tony2001@php.net
[2007-07-06 22:12 UTC] sixd@php.net
[2007-07-06 23:35 UTC] sixd@php.net
[2007-07-09 19:02 UTC] tony2001@php.net
[2007-09-07 15:05 UTC] nobleclem+phpbugs at gmail dot com
[2007-09-07 15:06 UTC] nobleclem+phpbugs at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
Description: ------------ When using oci_field_scale to obtain the value stored in all_tab_columns.data_scale in oracle for a field the value returned is that in all_tab_columns.data_scale multiplied by 256. Reproduce code: --------------- Assumptions: - field #2 is of type NUMBER(12,2) - all_tab_columns.data_precision is 12 - all_tab_columns.data_scale value is 2 Code: $conn = oci_connect('username', 'password'); $stmt = oci_parse($conn, "SELECT * FROM fees"); oci_execute($stmt); $field_number = 2; $scale = oci_field_scale( $stmt, $field_number ); Expected result: ---------------- $scale should be assigned the value of 2. Actual result: -------------- $scale is assigned the value of 512.