[Dbix-class] No tables found in database

Brandon Black blblack at gmail.com
Thu Mar 29 06:17:27 GMT 2007


On 3/28/07, Stephan Austermühle <au at hcsd.de> wrote:
> Hi,
>
> when trying to use DBIx::Class::Schema::Loader with my self compiled
> Perl 5.8.8 on Linux I always get the following error:
>
>         perl -MDBIx::Class::Schema::Loader=make_schema_at,dump_to_dir:./lib
> -e 'make_schema_at("Test::Schema", { debug => 1, relationships => 1 },
> [ "dbi:mysql:testdb","test","test" ])'
>         No tables found in database, nothing to load at
> /opt/perl5/lib/5.8.8/DBIx/Class/Schema/Loader/Base.pm line 452.
>         Dumping manual schema for Test::Schema to directory ./lib ...
> Schema dump completed.
>
> I have installed all required modules using CPAN.
>
> The above test works perfectly when using the Debian provided Perl. It
> works without problems with a self compiled Perl on HP-UX, too.
>
> Setting DBI_TRACE shows that the actual database access is possible.
>
> Do you know what is going wrong here?
>

I suspect this is some incompatibility issue with the latest
DBD::mysql and Schema::Loader.  I've just noticed it myself on an OSX
laptop running the latest everything.  I'm going to try to make a
patch for this by the end of this weekend if nobody else beats me to
it, I'm sure it has to do with the parameter list when asking DBI for
the tables (undef, undef, undef, '%', '%') or something like that.
With this and Ash's earlier patch there should be a 0.03010 soon.

-- Brandon


More information about the Dbix-class mailing list