[PHP] cubrid_execute can not throw exact exception after bind invalid error:
Path: php/_02_prepare/prepare_02.phpt
Test verion:
{noformat}
Cubrid: CUBRID 9.0 (9.0.0.0455)
PHP Driver:
http://svn.cubrid.org/cubridapis/php/branches/RB-9.0.0 Revision: 867
{noformat}
codes:
{noformat}
$req4 = cubrid_prepare($conn, 'INSERT INTO bind_tb(c3) VALUES(?)');
if (false == ($tmp =cubrid_bind($req4,1,2147483648,'number'))) {
printf([004] [%d] %s\n, cubrid_errno($conn), cubrid_error($conn));
}else{
printf([004] bind success.\n);
}
if (false ==($tmp =cubrid_execute($req4))) {
printf([004] [%d] %s\n, cubrid_errno($conn), cubrid_error($conn));
}else{
printf([004] execute success.\n);
$result = cubrid_fetch_assoc($req4);
var_dump($result);
}
{noformat}
actual result:
{noformat}
[004] bind success.
Warning: Error: CAS, 0, Unknown error message in /home/php/phptestcases/php/php/_02_prepare/prepare_02.php on line 40
[004] [0] Unknown error message
{noformat}
excepted result:
{noformat}
[004] bind success.
Warning: Error: DBMS, -494, Semantic: Cannot coerce host var to type integer. in %s on line %d
[004] [-494] Semantic: Cannot coerce host var to type integer.
{noformat}
This issue was not exist last version of PHP driver