Menu

#415 [PHP] cubrid_bind time and date value throws error

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

[PHP] cubrid_bind time and date value throws error

Test case: http://svn.cubrid.org/cubridapis/php/branches/RB-9.1.0/tests2/php/_13_cci_bugs/cubrid_bind_test1.phpt

Test envrionment:
{noformat}
php 5.3.18
cubrid build: 9.1.0.0201
cubrid php driver: http://svn.cubrid.org/cubridapis/php/branches/RB-9.1.0 1468
{noformat}

Test codes:
{noformat}
//date time type
$req = cubrid_prepare($conn, INSERT INTO time_tb VALUES('time date test',?,?););
cubrid_bind($req, 1, '02:22:22','time');
cubrid_bind($req, 2, '08/14/1977','date');
cubrid_execute($req);
{noformat}

Test error:
{noformat}
Warning: Error: DBMS, -176, Conversion error in date format. in /home/hudson/workspace/jobs/dailybuild_CUBRID-9.1.0/workspace/php/branch
es/RB-9.1.0/tests2/php/_13_cci_bugs/cubrid_bind_test1.php on line 14
{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.