[prev] [thread] [next] [Date index for 2004/04/29]
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> <FONT SIZE=3D2 =
FACE=3D"Arial">package ADA::DBI;</FONT>
<BR> <FONT SIZE=3D2 =
FACE=3D"Arial">use base 'Class::DBI';</FONT>
</P>
<P> <FONT SIZE=3D2 =
FACE=3D"Arial">#necessary config</FONT>
<BR> <FONT SIZE=3D2 =
FACE=3D"Arial">my ($dsn, $username, $password) =3D loadDBConfigFile(); =
</FONT>
<BR> <FONT SIZE=3D2 =
FACE=3D"Arial">ADA::DBI->set_db('Main', $dsn, $username, $password, =
{AutoCommit =3D> 0});</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial"># =
Uncommenting ANY of these lines causes CDBI to explode like =
this!</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial"># =
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.</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial"># =
Compilation failed in require at geofeature.cgi line 2.</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"># =
BEGIN failed--compilation aborted at geofeature.cgi line =
2. </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial"># =
ADA::DBI->db_Main->{ AutoCommit } =3D 0;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"># =
ADA::DBI->db_Main->{ TraceLevel } =3D 0;</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial"># =
ADA::DBI->db_Main->{ LongReadLen } =3D 300000;</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial"># =
Even this is crashworthy!</FONT>
<BR><FONT SIZE=3D2 FACE=3D"Arial">#$dbh =3D ADA::DBI->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?
|
|
Re: What happened?
|
Generated at 11:34 on 01 Dec 2004 by mariachi v0.52