Hi,

I know that Jeff Zucker often appears on these forums, so I'm hoping he'll see this but any thoughts would be appreciated. I have some code which uses DBD::AnyData and it has suddenly (ie in the past couple of months) stopped working. It appears that DBD::AnyData does not work at all any more, due to upgrades on Debian.

I made the following test:

#!/usr/bin/perl #/home/tbooth/perl/testanydata.perl - created Mon Jun 27 13:57:06 2005 use warnings; use DBI; my $addbh = DBI->connect('dbi:AnyData(RaiseError=>1):'); $addbh->func('import', 'CSV', [<DATA>], 'ad_import'); __DATA__ foo,bar,baz 1,2,3 4,5,6

Result is:
Can't call method "fetchrow_array" on unblessed reference at /usr/shar +e/perl5/SQL/Statement/Functions.pm line 560, <DATA> line 3.


Surely that should work? If I use 'ad_catalog' instead of 'ad_import' it throws the same error on the first attempt to select.

Current module versions are:
libxml-twig-perl 3.17-1 libanydata-perl 0.10-4 libtext-csv-perl 0.23-5 libdbd-csv-perl 0.2100-2 libdbd-anydata-perl 0.08-2 libsql-statement-perl 1.14-1


I really don't want to have to re-write all my code to use another module. I'm prepared to downgrade something to make this work, but with so many dependencies I don't know where to start. Any help would be most appreciated.

Thanks - TIM
--
#Tip: use 'no strict' to make those nasty errors vanish.

In reply to DBD::AnyData completely broken (or is it just me?) by avarus

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.