Test Build: CUBRID 2008 R4.1 (8.4.1.1018) (64bit release build for linux_gnu)
OS: Linux 64
Description:
The form of field parameter for [cubrid_result()|http://www.php.net/manual/en/function.cubrid-result.php] method:
It can be the field's offset, the field's name, or the field's table dot field name (tablename.fieldname)
if using the form tablename.fieldname, error will appear.
Repro steps:
1. execute: php result_test.phpt
statements in result_test.phpt
{noformat}
$conn = cubrid_connect(localhost, 33113, demodb);
$req = cubrid_execute($conn, SELECT * FROM code);
$result = cubrid_result($req, 0);
var_dump($result);
$result = cubrid_result($req, 0, 1);
var_dump($result);
$result = cubrid_result($req, 5, f_name);
var_dump($result);
//$result = cubrid_result($req, 5, code.f_name);
//var_dump($result);
$result = cubrid_result($req, 5, code.f_name);
var_dump($result);
cubrid_close_request($req);
cubrid_disconnect($conn);
{noformat}
Actual result:
{noformat}
string(1) X
string(5) Mixed
string(4) Gold
PHP Warning: Error: CCI, -13, Column index is out of range in /home/php/phpTestcases/_02_prepare/result_test.phpt on line 12
bool(false)
{noformat}
Expect result:
{noformat}
string(1) X
string(5) Mixed
string(4) Gold
string(4) Gold
{noformat}