What happened?

[prev] [thread] [next] [Date index for 2004/04/29]

From: vanHardenbergP
Subject: What happened?
Date: 21:53 on 29 Apr 2004
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C42E34.59363B80
Content-Type: text/plain

> I go away for, like, six months, and everything changes!
> 
> Just kidding. I was a bit startled at the amount of new dependencies I had
> to install to upgrade to .95. I'm having trouble with some code I wrote
> earlier, specifically my base class db_Main setup code.
> 
> 	package ADA::DBI;
> 	use base 'Class::DBI';
> 
> 	#necessary config
> 	my ($dsn, $username, $password) = loadDBConfigFile(); 
> 	ADA::DBI->set_db('Main', $dsn, $username, $password, {AutoCommit =>
> 0});
> 
> #	Uncommenting ANY of these lines causes CDBI to explode like this!
> 
> #	Can't use string ("DBIx::ContextualFetch::ISA") as an ARRAY ref
> while "strict refs" in use at C:/Perl/site/lib/DBI.pm line 531.
> #	Compilation failed in require at geofeature.cgi line 2.
> #	BEGIN failed--compilation aborted at geofeature.cgi line 2.	
> 
> #	ADA::DBI->db_Main->{ AutoCommit } = 0;
> #	ADA::DBI->db_Main->{ TraceLevel } = 0;
> #	ADA::DBI->db_Main->{ LongReadLen } = 300000;
> 
> #	Even this is crashworthy!
> #$dbh = ADA::DBI->db_Main
> 
> I have DBIx:CF installed, so I really can't imagine what's causing this.
> If this code is depreciated, many of the examples will need updating, and
> probably the Ima::DBI code.
> 
> Thanks for your impending advice/flames,
> 
> Peter van Hardenberg

------_=_NextPart_001_01C42E34.59363B80
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>What happened?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2 FACE=3D"Arial">I go away for</FONT><FONT =
COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">,</FONT><FONT SIZE=3D2 =
FACE=3D"Arial"> like, six months, and everything changes!</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Just kidding</FONT><FONT =
COLOR=3D"#0000FF" SIZE=3D2 FACE=3D"Arial">.</FONT><FONT SIZE=3D2 =
FACE=3D"Arial"> I was a bit startled at the amount of new dependencies =
I had to install to upgrade to .95. I'm having trouble with some code I =
wrote earlier, specifically my base class db_Main setup =
code.</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">package ADA::DBI;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">use base 'Class::DBI';</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">#necessary config</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">my ($dsn, $username, $password) =3D loadDBConfigFile(); =
</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">ADA::DBI-&gt;set_db('Main', $dsn, $username, $password, =
{AutoCommit =3D&gt; 0});</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Uncommenting ANY of these lines causes CDBI to explode like =
this!</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Can't use string (&quot;DBIx::ContextualFetch::ISA&quot;) as an ARRAY =
ref while &quot;strict refs&quot; in use at C:/Perl/site/lib/DBI.pm =
line 531.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Compilation failed in require at geofeature.cgi line 2.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
BEGIN failed--compilation aborted at geofeature.cgi line =
2.&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ADA::DBI-&gt;db_Main-&gt;{ AutoCommit } =3D 0;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ADA::DBI-&gt;db_Main-&gt;{ TraceLevel } =3D 0;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
ADA::DBI-&gt;db_Main-&gt;{ LongReadLen } =3D 300000;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
Even this is crashworthy!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">#$dbh =3D ADA::DBI-&gt;db_Main</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I have DBIx:CF installed, so I really =
can't imagine what's causing this. If this code is depreciated, many of =
the examples will need updating, and probably the Ima::DBI =
code.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Thanks for your impending =
advice/flames,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Peter van Hardenberg</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C42E34.59363B80--

What happened?
vanHardenbergP 21:53 on 29 Apr 2004

Re: What happened?
Tony Bowden 06:28 on 30 Apr 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52