Re: binding cursors (DBD::Oracle)

2001-08-28 Thread Ronald J Kimball
nstrate the problems I am > having binding cursors. In my actual code, the SQL statement is "SELECT > product_id, product_xml FROM product", where product_xml is a CLOB, up to > 500K in size. There are just over 21 millions records in the table, and some > of the products h

RE: binding cursors (DBD::Oracle)

2001-08-28 Thread Doug Johnson
Perhaps I should have been more specific when I said that "don't use cursors" isn't a viable solution. The code below isn't the actual code that I am trying to run, it is a simple example to demonstrate the problems I am having binding cursors. In my actual code, the

RE: binding cursors

2001-08-24 Thread Jones Robert Contr 81 CS/SCK
if(defined($row[0])){ print "result: $row[0]\n"; } } print "done\n"; -Original Message- From: Doug Johnson [mailto:[EMAIL PROTECTED]] Sent: Friday, August 24, 2001 11:40 AM To: '[EMAIL PROTECTED]' Subject: binding cursors I'm sorry to brin

RE: binding cursors

2001-08-24 Thread Scott T. Hildreth
I don't see why you need a cursor, the while (@row = $sth->fetchrow_array) will only fetch a row at a time. > $sth = $dbh->prepare(q{ > BEGIN OPEN :cursor FOR > SELECT c_client_name > FROM client; > END; > }); > my $st

binding cursors

2001-08-24 Thread Doug Johnson
I'm sorry to bring this up again - it has been covered before on the list, but surprisingly nobody has come up with a solution. If anyone has come up against this problem and has been able to solve it, or even if you were unable to solve it, I'd love to hear from you! Oh, and the solution: 'don'

Re: Binding cursors: what's going wrong here?

2001-08-16 Thread Tim Bunce
On Thu, Aug 16, 2001 at 01:49:28PM -0700, Rob McMillin wrote: > Tim Bunce wrote: > > > Try a $update->bind_param_inout(..., { ora_type => ORA_RSET }) so > > oracle knows you're passing a cursor. Use trace to see more detail. > > Okay, specifics? While I got the select to work okay, I have yet t

Re: Binding cursors: what's going wrong here?

2001-08-16 Thread Rob McMillin
Tim Bunce wrote: > Try a $update->bind_param_inout(..., { ora_type => ORA_RSET }) so > oracle knows you're passing a cursor. Use trace to see more detail. Okay, specifics? While I got the select to work okay, I have yet to see a working example of UPDATE ... WHERE CURRENT OF in Oracle using DBI

Re: Binding cursors: what's going wrong here?

2001-08-16 Thread Tim Bunce
Try a $update->bind_param_inout(..., { ora_type => ORA_RSET }) so oracle knows you're passing a cursor. Use trace to see more detail. Tim. On Wed, Aug 15, 2001 at 06:14:28PM -0700, Rob McMillin wrote: > Revisions: > > Oracle 8.1.7.1.1 (8i release 3) > RedHat 6.2 > Perl 5.6.0 > DBD::Oracle 1.07

Binding cursors: what's going wrong here?

2001-08-15 Thread Rob McMillin
Revisions: Oracle 8.1.7.1.1 (8i release 3) RedHat 6.2 Perl 5.6.0 DBD::Oracle 1.07 I'm trying to bind a cursor so I can use the "FOR UPDATE OF" clause to do updates and deletions. However, I can't even get the select working correctly! Here's my Perl code: #!/usr/bin/perl use DBD::Oracle qw(:

Re: FW: Binding Cursors using DBD::Oracle

2001-04-04 Thread Amy Farrell
to the wrong list. I appologize for the mixup. > > -Original Message----- > From: Duncan, Mike > Sent: Wednesday, April 04, 2001 11:24 AM > To: '[EMAIL PROTECTED]' > Subject: Binding Cursors using DBD::Oracle > > This topic may have been discussed earlier, but I

FW: Binding Cursors using DBD::Oracle

2001-04-04 Thread Duncan, Mike
I may have sent this to the wrong list. I appologize for the mixup. -Original Message- From: Duncan, Mike Sent: Wednesday, April 04, 2001 11:24 AM To: '[EMAIL PROTECTED]' Subject: Binding Cursors using DBD::Oracle This topic may have been discussed earlier, but I cannot se