Package: sqlfairy
Version: 0.07-4
Severity: normal

Three of the variables in the Getopts section of sqlt-graph are passed
by value instead of by reference. This causes the following error when
you attempt to run the script

$> sqlt-graph -h
Undefined argument in option spec
Undefined argument in option spec
Undefined argument in option spec

solution is to make the variables references by preceeding the $ with
a \. Diff follows

--- sqlt-graph.orig     2007-01-18 13:25:24.000000000 +1100
+++ sqlt-graph  2007-01-18 13:24:57.000000000 +1100
@@ -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;


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.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


-- 
Tim Cross
Information Technology Directorate 
University of New England
 Phone: +61 2 6773 3210
Mobile: 0428 212217
   Fax: +61 2 6773 3424
E-Mail: [EMAIL PROTECTED]
   Web: http://www.une.edu.au/itd
---
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

"Only two things are infinite, the universe and human stupidity, and
I'm not sure about the former" - Albert Einstein






-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to