SQL syntax for returning multiple values from a select?

2005-01-31 Thread Steven Lembark
The DBI doc's seem to indicate that multiple values can be returned from an insert query. Q: insert into foo ( bar bletch ) values ( bar$seq.nextval, bletch$seq.nextval ) returning ... I've tried variations on "( bar, bletch ) into (?,?)" with and wit

Re: parameter binding issues with DBD::Oracle

2005-01-31 Thread James D. White
Juan, The problem is your usage of "$sth->rows". You aren't guaranteed to know how many rows are available before you read them, so your example doesn't really show whether data was available or not. Here is a snip from "perldoc DBI": $rv = $sth->rows; Returns the number of

parameter binding issues with DBD::Oracle

2005-01-31 Thread Juan Jose Natera
Hi, I have a problem trying to make a few queries work with parameter binding: This code works fine: use DBI; use DBD::Oracle qw(:ora_types); my $dbh = DBI->connect($dsn,$user,$password); my $sth = $dbh->prepare('SELECT * FROM price WHERE id = 1'); $sth->execute(); my ($id,$price) = $sth->fetch

RE: Is this weird???

2005-01-31 Thread Reidy, Ron
You need to look at metalink docs 230691.1, 252217.1. There is also another on for RH 2.1. One of these will work for RH 9. -- Ron Reidy Lead DBA Array BioPharma, Inc. -Original Message- From: Maldonado, Daniel CW2 CTARNG [mailto:[EMAIL PROTECTED] Sent: Mon 1/31/2005 1:24 PM To:

Is this weird???

2005-01-31 Thread Maldonado, Daniel CW2 CTARNG
While installing DBD::Oracle I got the following errors: t/40ph_type.Can't load '/root/.cpan/build/DBD-Oracle-1.16/blib/arch/ auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: /opt/oracle/product/9.2.0/lib /libclntsh.so.9.0: undefined symbol: __cmpdi2 at /usr/lib/perl5/5.8.0/i386-linu

Re: Question re DBD::Sybase

2005-01-31 Thread David Goodman
Hello James: This is from $SYBASE/OCS-12.0/include/cspublic.h: #define CS_CMD_DONE(CS_INT)4046 So definitions are inherited from Sybase open client. regards, David --- "Anderson, James H (Company IT)" <[EMAIL PROTECTED]> wrote: > What is the meaning of result type 4046? I'ts not >

Question re DBD::Sybase

2005-01-31 Thread Anderson, James H (Company IT)
What is the meaning of result type 4046? I'ts not documented in DBD::Sybase. Thanks, Jim NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited.

Re: Issue regarding JPL

2005-01-31 Thread Michael A Chase tech
On 01/31/2005 04:52 AM, Manoj Kumar said: 1. From where I can get JPL source is any exact location because I got a lot of packages with name JPL . ? 2. Is JPL a part of Perl or it's a third party module. ? Looking forward for nice response from perl community . http://

Re: Problem compiling Oracle::OCI 0.06 under DBI 1.46

2005-01-31 Thread Tim Bunce
Thanks for the information. Tim. On Mon, Jan 31, 2005 at 09:25:32AM +0100, csg wrote: > Hello! > > I'm reacting to an old message: > http://www.nntp.perl.org/group/perl.dbi.users/24851 > (alternate link: http://www.mail-archive.com/dbi-users@perl.org/msg23002.html) > > I had got a similar probl

How to detect network interface down immediately from a client.

2005-01-31 Thread Tony . Adolph
Hi folks, I have an application talking to an Oracle 8i DB via DBI. As a test we shutdown the network interface to see how the applcation responds and it hangs for minutes. What we'd like is to detect the problem pretty well immediately. How can this be done? Is there something similar to

Issue regarding JPL

2005-01-31 Thread Manoj Kumar
Hi , I 've some questions regarding perl . Please check it. 1. From where I can get JPL source is any exact location because I got a lot of packages with name JPL . ? 2. Is JPL a part of Perl or it's a third party module. ? Looking forward for nice response

ANNOUNCE: DBD::ADO 2.94

2005-01-31 Thread Steffen Goeldner
file: $CPAN/authors/id/S/SG/SGOELDNER/DBD-ADO-2.94.tar.gz size: 41994 bytes md5: 88531f231c006c55328a8f355cb5325d Changes: Reworked db/st handle attributes: - fetching all the data of a SELECT sets Active off - dropped the RowsInCache attribute (ADO doesn't provide this informat

Re: Problem compiling Oracle::OCI 0.06 under DBI 1.46

2005-01-31 Thread csg
Hello! I'm reacting to an old message: http://www.nntp.perl.org/group/perl.dbi.users/24851 (alternate link: http://www.mail-archive.com/dbi-users@perl.org/msg23002.html) I had got a similar problem - it seems to me. Environment: - Windows XP - Perl 5.8.6 (MinGW compiled) - DBI 1.46 - DBD::Oracle