Package: autodia
Version: 2.14-1
Severity: normal

Dear Maintainer,

Here is how to reproduce the bug:

$ wget https://raw.github.com/fgouget/winetestbot/master/ddl/winetestbot.sql
$ autodia -l SQL winetestbot.sql
getting handlers..
getting pattern for sql

AutoDia - version 2.14(c) Copyright 2003 A Trevena

using language : SQL

..using Autodia::Handler::SQL
opening winetestbot.sql
Can't call method "add_attribute" on an undefined value at 
/usr/share/perl5/Autodia/Handler/SQL.pm line 87, <INFILE> line 163.

Line 87 is:
          $Class->add_attribute({
                                 name => $field,
                                 visibility => 0,
                                 type => $field_type,
                                });


It's the first line that throws it off:

CREATE DATABASE winetestbot DEFAULT CHARSET=utf8 DEFAULT COLLATE=utf8_bin;

If I remove it it manages to parse the SQL file without failing.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages autodia depends on:
ii  libtemplate-perl  2.22-0.1+b2
ii  perl              5.14.2-12

autodia recommends no packages.

Versions of packages autodia suggests:
pn  libgraphviz-perl  <none>

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to