Re: How to test status of handler sth?
From: Michael A Chase (mchase_at_ix.netcom.com)
Date: 10/24/03
- Next message: Phi Luu: "Problem with DBI install"
- Previous message: Ed Borden: "Perl 5.8/DBI 1.38 on AIX 5.1 -> make test fails with symbol resolution errors (IO.so)"
- In reply to: perl_at_swanmail.com: "Re: How to test status of handler sth?"
- Next in thread: Anil Menon: "Re: How to test status of handler sth?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 24 Oct 2003 03:32:17 -0700 (PDT) To: perl@swanmail.com
On Fri, 24 Oct 2003 02:17:31 -0700 (PDT) perl@swanmail.com wrote:
> I do know that it is a SELECT but I'm getting some kind of error on
> the fetch call. From this, I know there should be data but it's
> either failing or I lost the handle (sth). Though, I did some simple
> coding and found that it is not NULL (it is defined) but not
> fetching. And the code is crsahing
What error messages are you seeing? If you want help, you have to give
us something to work with.
The examples you gave were not testing for the result of the
operations. If you want your code to operate consistantly, you must
either set $dbh->{RaiseError} before you call prepare() or you must
check the result of each operation explicitly.
-- Mac :}) ** I usually forward private questions to the appropriate mail list. ** Ask Smarter: http://www.catb.org/~esr/faqs/smart-questions.html Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age.
- Next message: Phi Luu: "Problem with DBI install"
- Previous message: Ed Borden: "Perl 5.8/DBI 1.38 on AIX 5.1 -> make test fails with symbol resolution errors (IO.so)"
- In reply to: perl_at_swanmail.com: "Re: How to test status of handler sth?"
- Next in thread: Anil Menon: "Re: How to test status of handler sth?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|