Re: DBD::PgPP: how to fetch OID after INSERT?

2004-05-10 Thread Greg Sabino Mullane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I can't find anywhere in the documentation, how to fetch the OID returned > by the PostgeSQL, after an INSERT. > > I found, that in sub DBD::PgPP::CompletedResponse::compute() > [PgPP.pm:1505, VERSION=3D0.04] the OID value is stored, but I am not

Re: using binary data in variable in an INSERT/UPDATE statement

2004-05-10 Thread JupiterHost.Net
Andy Hassall wrote: The general approach is to always use placeholders, and never directly interpolate values into SQL statements. This should insulate you from whatever encoding's needed. Constants in SQL are OK, but if you're putting encoding as in quote()ing or encoding as in prepare/execute

Re: Oraperl and 64-bit Perl on HPUX

2004-05-10 Thread Tim Bunce
On Mon, May 10, 2004 at 10:11:29AM -0500, Gram M. Ludlow wrote: > Good morning! > I have been in charge of installing Oraperl on a bunch of our HPUX systems. Oh joy :) > I resolved the issue. I thought you might want to add it to your > README.HPUX at some point. Thanks. Tim.

RE: using binary data in variable in an INSERT/UPDATE statement

2004-05-10 Thread Andy Hassall
The general approach is to always use placeholders, and never directly interpolate values into SQL statements. This should insulate you from whatever encoding's needed. Constants in SQL are OK, but if you're putting Perl variables in a statement, in most cases this is not the best choice. e.g.

Re: using binary data in variable in an INSERT/UPDATE statement

2004-05-10 Thread JupiterHost.Net
Scott T. Hildreth wrote: I guess it would depend on which database you are using. I would try Good point :) I'm thinking MySQL, since this specific app will use MySQL excusively... it with a bind column and let the DBD driver handle the quoting if need be, I'm really hoping MySQL will work

Re: open cursor with hold question

2004-05-10 Thread Jim Cromie
James D. White wrote: You could try using two connect calls with two different DB handles. Prepare the select using one DB handle and insert with the other. A commit on the second DB handle should not close the fetchrow_array cursor on the first. James D. White ([EMAIL PROTECTED]) Department

Re: using binary data in variable in an INSERT/UPDATE statement

2004-05-10 Thread JupiterHost.Net
Anyone ever do this before? JupiterHost.Net wrote: Hello DBI folks! If I have a column that is binary and data that is binary do I simply $dbh->quote() it on an insert? IE my $binary_content = get_binary_stuff(); my $binary_content_Q = $dbh->quote($binary_content); $dbh->do("UPDATE MyStuff

RE: Ora-03113 using 9iclent against 817 db

2004-05-10 Thread Reidy, Ron
ORA-03113 is a kond of "catch all" error. The real problem will be defined in your alert.log file. - Ron Reidy Senior DBA Array BioPharma, Inc. -Original Message- From: Zhang, George [mailto:[EMAIL PROTECTED] Sent: Monday, May 10, 2004 10:01 AM To: [EMAIL PROTECTED] Sub

Ora-03113 using 9iclent against 817 db

2004-05-10 Thread Zhang, George
Dear friends, I have the following issue and wondering if you can help me: I am using Perl / DBI / DBD-Oracle on a Fedora box to connect to our 817 database (on win2k server). DBI/DBD::Oracle has been built against Oracle 9.2.0.1 on linux. It connects and is able to select from local tables, but

Oraperl and 64-bit Perl on HPUX

2004-05-10 Thread Gram M. Ludlow
Good morning! I have been in charge of installing Oraperl on a bunch of our HPUX systems. I've gone from 10.20 all the way to 11i. I found your cpan.org site, which has almost all of the information that I already gleaned from sources abroad. Thanks for maintaining all this, it's a great tool to us

RE: perl DBD-ODBC 1.09

2004-05-10 Thread Jeff Urlwin
> > > Hello, > > think you're missing a "~" in your Makefile.PL. > > ... > my $arext = $Config{lib_ext}; > > # fix to avoid foo..ext on many systems. > $arext = s/^\.//; > ! > > better works > $arext =~ s/^\.//; > > best regards > > ... awaiting version

RE: Repositories for DBI and Various DBD's

2004-05-10 Thread Jeff Urlwin
> > > Check out http://www.cedet.dk/perl/index.html. A copy of the > files from ftp://esoftmatic.com/outgoing/DBI is there. You > need to download and access them locally from ppm. Yes, and the pattern, rather than using the AS build # is to use the perl Version # 5.8.x, which should keep com

perl DBD-ODBC 1.09

2004-05-10 Thread Rudi Meins
Hello, think you're missing a "~" in your Makefile.PL. ... my $arext = $Config{lib_ext}; # fix to avoid foo..ext on many systems. $arext = s/^\.//; ! better works $arext =~ s/^\.//; best regards ... awaiting version 1.10 ;-)) rudi -- NEU : GMX Internet.F