[Dbix-class] Undetermined driver warning

Dan Horne dan.horne at redbone.co.nz
Thu Dec 13 02:46:24 GMT 2012


Hi

Since the test doesn't require any database access I simply used a mock
object. But since most of the other tests do, I'll switch to DBD::SQLite....

Dan

On 6 December 2012 21:52, Peter Rabbitson <rabbit+dbic at rabbit.us> wrote:

> On Sun, Dec 02, 2012 at 06:20:47AM +1300, Dan Horne wrote:
> > Hi
> >
> > After returning to some old code that worked fine, I find that the late=
st
> > version of DBIx::Class raises the following warning when my code's tests
> > are run:
> >
> > "This version of DBIC does not yet seem to supply a driver for your
> > particular RDBMS and/or connection method"
> >
> > This is because the tests in question use DBD::Mock, which is fine for
> what
> > I am testing. Is there anyway to turn this warning off? Was the warnings
> > introduction a widely requested feature? I would have expected that usi=
ng
> > DBD::Mock would not have been uncommon....
>
> Sorry for the late reply. Yes - believe it or not you are the first user
> of DBD::Mock I've come across, hence I would assume not very common at
> all. Could you please share one of your test files with us - I want to
> see what is the extent of communication between the DBD and DBIC, to
> decide if a ::Storage::DBI::Mockis awrranted, or just preempting the
> warning is enough. Parallel to this I am also considering to add an
> envvar to disable said warning for cases like yours.
>
> In any case - I would like to see one of your tests first please.
>
> Cheers
>
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive:
> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20121213/69b=
38d12/attachment.htm


More information about the DBIx-Class mailing list