|
|
sybperl-l Archive
Up Prev Next
From: Michael Ellery <mellery at yahoo dot com>
Subject: Sybase::BCP
Date: Feb 17 1999 7:47PM
Hi-
I'm using the Sybase::BCP module and having trouble with the return
value of the run method. I do something like:
--------------------------------------------------------
$bcph = new Sybase::BCP $DB_USER, $DB_PWD, $SERVER;
$bcph -> Sybase::BCP::config(
INPUT => $bcp_file,
OUTPUT => 'scratch_db..wk_intl_asset_load',
DIRECTION => 'IN',
SEPARATOR => $BCP_DELIMITER,
ERRORS =>
"$CONFIG{$Config_Base_Name}->{LOG_DIR}/bcp.err",
);
# And BCP it in. Check the number of rows sent.
$bcp_rows_sent = $bcph->Sybase::BCP::run();
--------------------------------------------------------
..and $bcp_rows_sent comes back as 1 even though all the rows (776 in
this case) actually get sent over fine. Am I doing something wrong
here.
TIA,
Mike Ellery
==
*-------------------------------------------*
* Michael Ellery *
* mellery@yahoo.com *
*-------------------------------------------*
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
|