Menu

#262 [PHP] cubrid_bind failed when using enum

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

cubrid_bind failed when using enum:
The error log:
Warning: Error: CLIENT, -30015, Some parameter not binded in /home/php/phptestcases/php/php/_18_enum/enum_bind_02.php on line 34

The codes:
//select bind
$sql = select e1 + ?, ? + e1, e1 + ?, e1 * ?, e1 + ? from t1 where e1 ? order by 1, 2, 3, 4, 5;
$a=1;
$b=1;
$c=1.1;
$d=5;
#$e=2;
$e=ord('-');
print($e.\n);
$f=7;
cubrid_bind($req, 1, $a );
cubrid_bind($req, 2, $b );
cubrid_bind($req, 3, $c );
cubrid_bind($req, 4, $d );
cubrid_bind($req, 5, $e );
cubrid_bind($req, 6, $f );
$req = cubrid_prepare($conn, $sql, CUBRID_INCLUDE_OID);
cubrid_execute($req);

The detailed codes see the file attached.

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.