Package: sqlfairy
Version: 0.07-4
Severity: normal
Tags: patch

At the moment the /usr/bin/sqlt-graph command is not usable :

[EMAIL PROTECTED]:~/Documents/ucl/alert/python/db$ sqlt-graph --f PostgreSQL -o
test.png myscheme.sql
Undefined argument in option spec
Undefined argument in option spec
Undefined argument in option spec

The error is basically a typo error in the Perl file:

-    'show-datatypes'   => $show_datatypes,
+    'show-constraints' => \$show_constraints,


I've attached a patch correcting the three faulty lines.

Didrik

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=fr_BE.UTF-8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)

Versions of packages sqlfairy depends on:
ii  libgraphviz-perl              2.02-1     Perl interface to the GraphViz gra
ii  libsql-translator-perl        0.07-4     SQL translation library
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 

sqlfairy recommends no packages.

-- no debconf information
--- /usr/bin/sqlt-graph 2007-01-11 15:52:14.000000000 +0100
+++ /home/did/patches/sqlt-graph.corrected      2007-01-11 15:52:47.000000000 
+0100
@@ -119,9 +119,9 @@
     'natural-join'     => \$natural_join,
     'natural-join-pk'  => \$join_pk_only,
     's|skip:s'         => \$skip_fields,
-    'show-datatypes'   => $show_datatypes,
-    'show-sizes'       => $show_sizes,
-    'show-constraints' => $show_constraints,
+    'show-datatypes'   => \$show_datatypes,
+    'show-sizes'       => \$show_sizes,
+    'show-constraints' => \$show_constraints,
     'debug'            => \$debug,
     'h|help'           => \$help,
 ) or die pod2usage;

Reply via email to