Improve add_trigger consistency between producers
authorAndrew Gregory <andrew.gregory.8@gmail.com>
Sun, 14 Dec 2014 22:29:45 +0000 (17:29 -0500)
committerPeter Rabbitson <ribasushi@cpan.org>
Wed, 24 Jun 2015 22:58:56 +0000 (00:58 +0200)
commite533bcddea14f0d8a2c58ce6bdc06ec82ea1de8e
treefa59b047413b2214430ccebfa903eca0a6869b82
parent237e4855d512ffd8877490dc986fe1385087ad27
Improve add_trigger consistency between producers

Update Producer::SQLite and Producer::MySQL to only wrap the trigger
action in "BEGIN...END" when the user has not already done so, bringing
them in line with other producers and the add_trigger documentation.
Changes
lib/SQL/Translator/Producer/MySQL.pm
lib/SQL/Translator/Producer/SQLite.pm
t/38-mysql-producer.t
t/56-sqlite-producer.t