Subject: | SQL::Translator::Diff needs a boolean or count of diffs |
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