Skip Menu |
 

This queue is for tickets about the GraphViz-DBI CPAN distribution.

Report information
The Basics
Id: 25909
Status: new
Priority: 0/
Queue: GraphViz-DBI

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.02
Fixed in: (no value)



Subject: FIX to ignore quotes in quoted table names (when using mysql).
Download (untitled) / with headers
text/plain 587b
# This is the original sub: sub get_tables { my $self = shift; $self->{tables} ||= [ $self->get_dbh->tables ]; return @{ $self->{tables} }; } # This is the new sub: sub get_tables { my $self = shift; $self->{tables} ||= [ map { s/^`|`$//g; $_; } $self->get_dbh->tables ]; return @{ $self->{tables} }; } It seems that DBD::mysql (at least the version I'm using) returns quoted table names. Without the fix, relations are not found. B.t.w. this could be set as a new() constructor option along with perhaps other things as ignoring case when trying to find relations.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.