Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: PHP-8.4.1, PHP-Apricot
-
Component/s: PHPDriver
-
Labels:None
Description
cubrid_fetch_field will will put the cursor position at the end of the result set. This should not be the function of this method. For example:
{panel}<?php
$conn = cubrid_connect ('localhost', 33000, 'demodb', 'public', '');
$req = cubrid_execute ($conn, 'SELECT * FROM code');
$row = cubrid_fetch ($req);
echo "The first row:\n";
print_r ($row);
$field = cubrid_fetch_field ($req);
print_r ($field);
$row = cubrid_fetch ($req);
echo "second row\n";
print_r ($row);
?>
{panel}
The output will be:
{panel}The first row:
Array
(
[0] => X
[s_name] => X
[1] => Mixed
[f_name] => Mixed
)
stdClass Object
(
[name] => s_name
[table] => code
[def] =>
[max_length] => 1
[not_null] => 0
[primary_key] => 0
[unique_key] => 0
[multiple_key] => 1
[numeric] => 0
[blob] => 0
[type] => char(1)
[unsigned] => 0
[zerofill] => 0
)
second row{panel}
Issue Links
- relates to
-
APIS-124
[PHP]Value of max length is zero of int type
-
Commit rev: 448