Re: Problems with Error Handling

2006-06-01 Thread Tim Bunce
On Wed, May 31, 2006 at 08:57:23PM -0700, Don Mies wrote: > Tim, et. al. Following is a small sample program that demonstrates my > problem: > >my $stmtHandle = $dbHandle->prepare ( $insert ); > >$dbHandle->{AutoCommit} = 0; >$dbHandle->{PrintError} = 0; >$dbHandle->{RaiseError}

Re: Problems with Error Handling

2006-05-31 Thread Don Mies
Tim, et. al. Following is a small sample program that demonstrates my problem: #! /bin/perl -w use DBI; # use CGI qw ( :standard ); my $dbHandle = DBI->connect ( "dbi:mysql:commodities:127.0.0.1", 'don', "" ) || die "Got error $DBI::errstr when connecting to mysql:com

Re: Problems with Error Handling

2006-05-31 Thread Tim Bunce
Please post a *small but complete* example that demonstrates the problem. Tim. On Tue, May 30, 2006 at 09:19:25PM -0700, Don Mies wrote: > > I'm running the Perl DBI module with MySQL under cygwin on a Windows XP > system > and I'm having trouble using the DBI error handling/trapping procedures.

Problems with Error Handling

2006-05-30 Thread Don Mies
I'm running the Perl DBI module with MySQL under cygwin on a Windows XP system and I'm having trouble using the DBI error handling/trapping procedures. I'm running perl v5.8.7 built for cygwin-thread-multi-64int; DBI v1.50; MySQL 5.0.18-nt. Here is a snippet of what my program looks like: