Menu

#153 cubrid_unbuffered_query cannot be used properly with cubrid_fetch_object

open
nobody
None
5
2012-04-27
2012-04-27
Jira Trac
No

When using the code below (such as in the example from http://php.net/manual/en/function.cubrid-unbuffered-query.php\)

{code}
?php
$conn = cubrid_connect(localhost, 33000, demodb, dba, );
$c = cubrid_unbuffered_query('SELECT * FROM athlete');
while ($r = cubrid_fetch($c)) {
echo After fetch...br /;
var_dump($r);
}
cubrid_disconnect($conn);
?
{code}

All the results are returned, but also the following error occurs after all the results are displayed correctly:
Warning: Error: CAS, -1006, Server handle not found in ... on line 4

It happens with any database and also with cubrid_fetch_array and cubrid_fetch_object. It does not happen with cubrid_query so it is related to cubrid_unbuffered_query.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.