Might be an outdated mysql driver. What driver are you using.
Ilya Sterin
-----Original Message-----
From: Vladimir Korobko
To: [EMAIL PROTECTED]
Sent: 04/28/2001 3:15 AM
Subject: Re: $DBI::errstr
listen Jeff !
which type of DB are you using ?
on ORACLE 7 and ORACLE 8 - everything is ok !
it happens only with mysql . currently I use version 3.23
tell me version of your DB
Jeff Waugh wrote:
> What does your connect statement look like?
> Are you wrapping your database methods in an eval?
> Are you using outdated versions of DBI or DBD?
>
> Maybe a bit more code would help.
>
> ----- Original Message -----
> From: "Vladimir Korobko" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, April 28, 2001 4:05 AM
> Subject: $DBI::errstr
>
> > Hello all !
> >
> >
> > I try to set automatic error checking for whole script !
> > Error Checking should be done during every operation with DB like
> > connect , execute,
> > disconnect , prepare . And in case of error programm should be
> > terminated !
> >
> > My way is :
> >
> > %attr = (
> > PrintError=>1,
> > RaiseError=>1
> > );
> > or
> > $h->{PrintError} = 1;
> > $h->{RaiseError} = 1;
> >
> > but during execution wrong sql query I only get this warning
> > DBD::mysql::st execute failed: Table 'sms.pentiu' doesn't exist at
> > ./check_available_driver.pl line 23.
> > DBD::mysql::st fetchrow_array failed: fetch() without execute() at
> > ./check_available_driver.pl line 24.
> > and programm does not terminate untile Iset
> >
> > $sth->execute || die "$DBI::errstr\n";
> >
> > when it's look ok and programm is stopped with next message :
> >
> > DBD::mysql::st execute failed: Table 'sms.pentiu' doesn't exist at
> > ./check_available_driver.pl line 23.
> > Table 'sms.pentiu' doesn't exist
> >
> >
> > so how I could check every operation without checking it directly?
> >
> >
> >