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

From: Date: Sun, 18 Oct 2020 04:22:08 +0000
Subject: Bug #45445 [Fbk->NoF]: 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-229702@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:       php-bugs@lists.php.net
 Reported by:      BunakovM at meta dot ua
 Summary:          odbc_field_len(), odbc_field_precision(),
                   odbc_field_scale() - don't work
-Status:           Feedback
+Status:           No Feedback
 Type:             Bug
 Package:          ODBC related
 Operating System: Windows XP, SP2
 PHP Version:      5.2.6
 Assigned To:      cmb
 Private report:   N

 New Comment:

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


Previous Comments:
------------------------------------------------------------------------
[2020-10-05 08:00:32] cmb@php.net

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>

------------------------------------------------------------------------
[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


Thread (7 messages)

« previous php.bugs (#229702) next »