Bug #45445 [Opn->Fbk]: odbc_field_len(), odbc_field_precision(), odbc_field_scale() - don't work

From: Date: Mon, 05 Oct 2020 08:00:32 +0000
Subject: Bug #45445 [Opn->Fbk]: odbc_field_len(), odbc_field_precision(), odbc_field_scale() - don't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-229380@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=45445&edit=1 ID: 45445 Updated by: cmb@php.net Reported by: BunakovM at meta dot ua Summary: odbc_field_len(), odbc_field_precision(), odbc_field_scale() - don't work -Status: Open +Status: Feedback Type: Bug Package: ODBC related Operating System: Windows XP, SP2 PHP Version: 5.2.6 -Assigned To: +Assigned To: cmb Block user comment: N Private report: N New Comment: If you still can reproduce this with any of the actively supported PHP versions[1], please update the PHP version info, and an ODBC trace of running the provided test script. [1] <https://www.php.net/supported-versions.php> Previous Comments: ------------------------------------------------------------------------ [2016-06-13 18:26:56] BunakovM at meta dot ua Hi I cannot test it now Sorry ------------------------------------------------------------------------ [2016-06-13 13:04:10] cmb@php.net Does this issue still persist? The ODBC extension had been reworked for PHP 7.0.0, so please check with a recent PHP version. ------------------------------------------------------------------------ [2009-09-12 15:12:36] pits_1 at mail dot ru Mikhail (Maksim?)! I can not found ODBC-driver for TransBase 8-((( Help me? PLS! See http://www1.transaction.de/transaction/documentation.0.html?&L=1 Are PHP interface realy exist? Peter S. from Russia, SPb ------------------------------------------------------------------------ [2008-07-07 10:05:48] BunakovM at meta dot ua Description: ------------ The functions odbc_field_len(), odbc_field_precision(), odbc_field_scale() - don't work corractly when use Transbace ODBC driver in "SELECT ..." SQL-statement. Reproduce code: --------------- $con_str = "Driver={Transbase ODBC};Database=MyDB"; $db_conn = odbc_connect($con_str,"user","0") $query = "SELECT * FROM Tab1"; $res = odbc_exec($db_conn, $query); $num_fields = odbc_num_fields($res); for($j=1; $j<=$num_fields; $j++){ echo odbc_field_name($res,$j); echo '<br/>' . odbc_field_type($res,$j); echo '<br/>' . odbc_field_len($res,$j); echo '<br/>' . odbc_field_precision($res,$j); echo '<br/>' . odbc_field_scale($res,$j); echo '<br/>' . odbc_result($res,$j); } odbc_free_result($res); // Free Result odbc_close($db_conn); // Close Connection Expected result: ---------------- city_name varchar 128 ? ? Kiyv Actual result: -------------- city_name varchar 39806880 39770304 39805152 Kiyv ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=45445&edit=1

« previous php.bugs (#229380) next »