Skip Menu |

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

Report information
The Basics
Id: 122215
Status: new
Priority: 0/
Queue: SQL-Translator

Owner: Nobody in particular
Requestors: petru.trimbitas [...]

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

Subject: Bug when trying to make a diff
Date: Sat, 24 Jun 2017 22:37:51 +0300
To: bug-SQL-Translator [...]
From: Petru Trimbitas <petru.trimbitas [...]>
Download (untitled) / with headers
text/plain 921b
I tried to do a diff in order to upgrade db. After some discussion on irc ribasushi gave me this code which produces the same bug as my code. perl -e ' my $s1 = <<"EOS"; CREATE TABLE users ( username text NOT NULL, password text NOT NULL, PRIMARY KEY (username) ); EOS my $s2 = <<"EOS"; CREATE TABLE users ( username text NOT NULL, PRIMARY KEY (username) ); EOS use SQL::Translator::Diff; use SQL::Translator; print SQL::Translator::Diff::schema_diff( SQL::Translator->new( parser => "SQL::Translator::Parser::PostgreSQL", )->translate(\$s1), "PostgreSQL", SQL::Translator->new( parser => "SQL::Translator::Parser::PostgreSQL", )->translate(\$s2), "PostgreSQL", ); print "\n"; ' It produces Use of uninitialized value $c_name in sprintf at /home/petru/perl5/lib/perl5/SQL/Translator/Producer/ line 950.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to