home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
perl502b.zip
/
lib
/
auto
/
DB2CLI
/
Statement.al
< prev
next >
Wrap
Text File
|
1996-02-24
|
364b
|
16 lines
# NOTE: Derived from lib/DB2CLI.pm. Changes made here will be lost.
package DB2CLI;
sub Statement
{
my ($connRef, $comment) = @_;
my ($hstmt, $rc);
if ($rc = SQLAllocStmt($connRef->{HDBC}, $hstmt)) {
$connRef->Message("SQLAllocStmt", $rc);
return undef;
}
return bless { %$connRef, HSTMT => $hstmt, TEXT => $comment };
}
1;