Menu

#57 [Perl]Error doesn't appear when binding an error content to time type.

open
nobody
None
5
2012-01-11
2012-01-11
Jira Trac
No

Test Build:CUBRID 2008 R4.0 (8.4.0.2019) (64bit release build for linux_gnu)
OS: Linux 64
Description: Error doesn't appear when binding an error content to time type.

Repro Steps
perl bind_param_7.pl

statements in bind_param_7.pl:

$dbh-do(CREATE TABLE tm(col_time time);) or die create error: $dbh-errstr;
my $sth=$dbh-prepare(insert into tm values(?);) or die prepare error: $dbh-errstr;
my $bdRs1=$sth-bind_param(1, '10:20:59 aaM',SQL_TIME) or die bind_param error: $dbh-errstr;
$sth-execute() or die execute error: $dbh-errstr;

Actual result:
{noformat}
no error;
'10:20:59 aaM' was inserted into database;

csql -udba demodb;
select * from tm;

=== Result of SELECT Command in Line 1 ===

col_time

10:20:59 AM
{noformat}

Expect result:
{noformat}
error appear when executing this program;

{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.