Menu

#414 [PHP] cubrid_unbuffered_query has not return false when there are no tuples

open
nobody
None
5
2013-02-19
2013-02-19
Jira Trac
No

[PHP] cubrid_unbuffered_query has not return false when there are no tuples
Test case: http://svn.cubrid.org/cubridapis/php/branches/RB-9.1.0/tests2/php/_11/unbuffered_query_02.phpt

Test codes:
{noformat}
$unbuff=cubrid_unbuffered_query(select * from unbuffered_tb where id 10,$conn);
if (false == $unbuff) {
printf([004] Expecting false, [%d] [%s]\n, cubrid_errno($conn), cubrid_error($conn));
}else{
$row=cubrid_fetch_assoc($unbuff);
var_dump($row);
cubrid_free_result($unbuff);
}
{noformat}

expect result:
{noformat}
Syntax error: unexpected 'THIS', expecting SELECT or VALUE or VALUES or '(' ]
[004] Expecting false, [-10006] [Server handle not found]
{noformat}

actual result
{noformat}
bool(false)
{noformat}

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.