in reply to Re: Can't call method "do" - DBI Troubles
in thread Can't call method "do" - DBI Troubles
You can use the RaiseError option in the connect() method to automatically "status check" all calls to database functions, a nice little time saver. Note: you still have to status check the connect() method itself. . .
and the statementmy $dbh=DBI->connect($db,$username,$pass,{RaiseError => 1}) or die("Co +uldn't connect to database ".DBI::errstr);
will automatically have status checking done for it, as well as any other calls to DBI.$dbh->do($sql);
-Any sufficiently advanced technology is
indistinguishable from doubletalk.
|
|---|