Package: sqlfairy Version: 0.08-1 Severity: normal Tags: patch
Hi, When using the following command : [EMAIL PROTECTED]:~/db$ sqlt-diagram --from=MySQL -o test.png --natural-join db_prod_scheme_14072007.sql Error: translate: Error with producer 'SQL::Translator::Producer::Diagram': Can't locate object method "new" via package "Graph::Directed" (perhaps you forgot to load "Graph::Directed"?) at /usr/share/perl5/SQL/Translator/Schema.pm line 95. The --natural-join command causes problem. The correction in the code is simple. You only need to add a "use Graph::Directed" at line 95 of the Schema.pm file (see patch in attachement). Didrik -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.21-2-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages sqlfairy depends on: ii libgraphviz-perl 2.02-1 Perl interface to the GraphViz gra ii libsql-translator-perl 0.08-1 SQL translation library ii perl 5.8.8-7 Larry Wall's Practical Extraction sqlfairy recommends no packages. -- no debconf information
--- /home/did/debian/Schema.pm 2007-07-15 01:04:56.000000000 +0200 +++ /usr/share/perl5/SQL/Translator/Schema.pm 2007-07-15 01:06:07.000000000 +0200 @@ -91,6 +91,7 @@ =cut + use Graph::Directed; my $self = shift; my $g = Graph::Directed->new;