Skip Menu |

This queue is for tickets about the SQL-Translator CPAN distribution.

Report information
The Basics
Id: 49299
Status: resolved
Priority: 0/
Queue: SQL-Translator

People
Owner: Nobody in particular
Requestors: mmokrejs [...] ribosome.natur.cuni.cz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.11002



Subject: Error: translate: Error with parser 'SQL::Translator::Parser::MySQL': Can't use string (",") as a HASH ref while "strict refs" in use at (eval 215) line 7189.
Date: Mon, 31 Aug 2009 23:43:40 +0200
To: bug-SQL-Translator [...] rt.cpan.org
From: Martin MOKREJŠ <mmokrejs [...] ribosome.natur.cuni.cz>
Hi, I am trying to get a drawing of an sql schema from MySQL-5.0. I think SQL-Translator always supported only the old scheme. Anyway, here is what I get using SQL-Translator-0.11001: $ sqlt-diagram --debug -d MySQL -t "blah: Mon Aug 31 14:14:10 MEST 2009" -i png --natural-join-pk --gutter -o schema.png schema-mysql_3.23.58.sql [SQL::Translator] Got parser: SQL::Translator::Parser::MySQL::parse [SQL::Translator] Got producer: SQL::Translator::Producer::Diagram::produce [SQL::Translator] translate: Got a filename [SQL::Translator] Got filename: 'schema-mysql_3.23.58.sql' [SQL::Translator] Opening 'schema-mysql_3.23.58.sql' to get contents. [SQL::Translator] Error: translate: Error with parser 'SQL::Translator::Parser::MySQL': Can't use string (",") as a HASH ref while "strict refs" in use at (eval 215) line 7189. How can I get more through debug info to figure out what is wrong in the input file? Or is this a known issue? I create the input file with: mysqldump --add-drop-table --compatible=mysql323 --skip-add-locks --skip-extended-insert --no-data --disable-quote --skip-comments Even when I omit the "--compatible=mysql323" argument I get the same error. Thank you for any comments, Martin
This was an upstream issue with Parse::RecDescent, the new SQL::Translator 0.11002 depends on a newer fixed up version of the parser.