Fwd: DBlib to CTlib migration question
Michael Peppler <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.dbi.sybase |
|---|---|
| Message-ID | <[email protected]> |
---------- Forwarded message ---------- From: Debkumar Chakraverty <[email protected]> Date: Apr 12, 2005 9:57 AM Subject: DBlib to CTlib migration question To: [email protected] Hi, I am migrating DBlib calls to CTlib & am facing the following concern... There is a call to "dbretstatus()" for which i am not able to get the corresponding call in CTlib as below... *************************************************Sample Code************************************************* ....... sub sql_print { my $arg; my $type; while ($arg = shift) { if ($type = ref ($arg)) { if ($type eq 'ARRAY') { print STDERR "@$arg\n" } else { print STDERR "Can't display type $type\n" } } else { chomp $arg; print STDERR "$arg\n"; } } } ....... my $query = "exec $proc $parms"; ........ sql_print ($dbh->doSql ($query)); my $ret = $dbh->dbretstatus(); print STDOUT $ret; if ($ret < 0){ exit 1; } exit 0 *************************************************Sample Code************************************************* Any help for the corresponding CTlib call would be appreciated... Thanks in advance... -------- Cheers, - Debkumar Chakraverty ______________________________________________________________________