How do I call Informix stored procedures from Perl?
Posted
by superjtc
on Stack Overflow
See other posts from Stack Overflow
or by superjtc
Published on 2010-06-14T04:54:48Z
Indexed on
2010/06/14
5:02 UTC
Read the original article
Hit count: 157
How do I call informix stored procedures from Perl? I use DBD::ODBC to connect to informix database, but I don't know how to call procedures. my code like this:
my $dbh=DBI->connect("dbi:".DBDRIVE.":".DBNAME,DBUSER,DBPASS,{RaiseError=>0,PrintError=>0,AutoCommit=>1}) ||die $DBI::errstr;
$dbh->do("execute procedure sp_test('2010-05-01 00:00:00')") || warn "failed\n";
$dbh->disconnect();
when I run it, it didn't get error. But I get nothing when I check the database. the store procedure works fine if I run it in database directly. Anyone can help me out?
© Stack Overflow or respective owner