Re: DB2 Err Handling

2005-09-02 Thread johnnnnnn
Capacio, Paula J wrote: my $stmt = 'select count(*) from sysibm.badTblnm '; my $sth = $dbh->prepare($stmt) or die "Prepare Failed\n"; DBD::DB2 doesn't seem to return false values for failures. Instead, try checking the sqlstate of the db handle: my $sth = $dbh->prepare($stmt); if ($dbh->

Re: looking for driver for DB2

2003-11-05 Thread johnnnnnn
On Wed, Nov 05, 2003 at 08:55:16AM -0500, Anderson, James H [IT] wrote: > As the subject says, I'm looking for a DB2 DBD (I'm running on Mac OS X). Check with IBM: http://www-3.ibm.com/software/data/db2/perl/ It should work wherever you can get perl and DBI to work, as long as you can also get t

Re: DB2 Total environment allocation failure on HP-UX

2003-06-26 Thread johnnnnnn
On Thu, Jun 26, 2003 at 10:44:00AM -0400, Craig Sharp wrote: > I have done multiple combinations of #2 above but still get the > following error on connect: > > DBI->connect(ISDEV) failed: Total Environment allocation failure! > Did you set up your DB2 client environment? at domain_ret.pl line 13

Re: DB2 V8.x RH9 and Perl DBD::DB2

2003-06-09 Thread johnnnnnn
On Tue, Jun 10, 2003 at 10:50:13AM +1000, James Collins wrote: > Has anyone else in the world tried running his combination yet?? We've been trying to move from DB2 7 to DB2 8, and have used DBD::DB2 compiled against the V7 client libraries against a V8 server without any problem. We haven't

Re: RFC: SQL Extensions for SQL::Statement [Long]

2003-06-06 Thread johnnnnnn
On Thu, Jun 05, 2003 at 10:32:58PM +0200, Bart Lateur wrote: > FWIW, MySQL allows the syntax > > SELECT * FROM database.table > > where "table" is the name of a table in the database with name > "database". I'm not sure how standard that is :) Much more standard is: SELECT * FROM schema

Re: LIKE and Variable Binding

2003-05-29 Thread johnnnnnn
On Wed, May 28, 2003 at 12:31:33PM -0400, Thomas Good wrote: > Hi, how does one use LIKE and a wildcard with variable binding?? > > $q = qq |select * from x where y like ?|; > ... > $sth->execute($some_variable) > > where does the % go?? my $some_variable = '%here%'; The placeholder variables g

Re: OT: What's up with CPAN

2003-04-01 Thread johnnnnnn
On Tue, Apr 01, 2003 at 10:26:51AM -0800, Karyn Ulriksen wrote: > I think I've had my head buried in code too long. Why in god's > creation is www.cpan.org now going to Matt's Script Archive? Check the date... -johnnn