Menu

#58 [Perl]Error doesn't appear when binding an error type to cubrid_lob_import method

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 type to cubrid_lob_import method

Repro Steps
perl import_2.pl

statements in import_2.pl:
my $sth=$dbh-prepare(insert into import_1 values(?,?);) or die prepare error: $dbh-errstr;
$sth-bind_param (1, 1) or die bind_param error: $dbh-errstr;
my $importValue=$sth-cubrid_lob_import (2, import1.txt, DBI::SQL_TIME) or die $dbh-errstr . cubrid_lob_import error\n;

Actual result:
{noformat}
no error;
this record was inserted into database;

csql -udba demodb;
csql select * from import_1;

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

doc_id content

'1' file:/home/perl/CUBRID/databases/pldb/lob/ces_257/import_1.00001326245606685734_8184
{noformat}

Expect result:
{noformat}
errror appear;
this record wasn't successfully inserted into database

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