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 >
Text File  |  1996-02-24  |  364b  |  16 lines

  1. # NOTE: Derived from lib/DB2CLI.pm.  Changes made here will be lost.
  2. package DB2CLI;
  3.  
  4. sub Statement
  5. {
  6.     my ($connRef, $comment) = @_;
  7.     my ($hstmt, $rc);
  8.     if ($rc = SQLAllocStmt($connRef->{HDBC}, $hstmt)) {
  9.     $connRef->Message("SQLAllocStmt", $rc);
  10.     return undef;
  11.     }
  12.     return bless { %$connRef, HSTMT => $hstmt, TEXT => $comment };
  13. }
  14.  
  15. 1;
  16.