Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: chris+rt [...] chrisdolan.net
Cc:
AdminCc:

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



Subject: SQL::Translator::Diff needs a boolean or count of diffs
Download (untitled) / with headers
text/plain 676b
I want to run SQL diffs and behave differently if there are differences vs. if there are no differences. The method SQL::Translator::Diff::produce_diff_sql is apparently supposed to return false if there are no differences. However, earlier in the code a "-- No differences found" comment is added as a diff. Consequently, to tell if there were any differences or not, one must either parse the resulting SQL or delve into the internals of SQL::Translator::Diff. Two solutions: 1) Simply remove the "-- No differences found" comment 2) Add a method that indicates whether there are any differences. If this exists, I could decide whether to even invoke produce_diff_sql


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.