X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FTranslator%2FProducer%2FMySQL.pm;h=1f8c541d699bb4e07bad8c26df9d0aae9b7d485f;hb=fcc18942e8dfb0eee2391f0ea9a7841b76f94a65;hp=c0e76371c5e8bcbed94e866b0140d78aa7283d66;hpb=7b1bb6588589c3f1d6e17ff1cb6af5941136720b;p=dbsrgits%2FSQL-Translator.git diff --git a/lib/SQL/Translator/Producer/MySQL.pm b/lib/SQL/Translator/Producer/MySQL.pm index c0e7637..1f8c541 100644 --- a/lib/SQL/Translator/Producer/MySQL.pm +++ b/lib/SQL/Translator/Producer/MySQL.pm @@ -156,9 +156,7 @@ sub preprocess_schema { # TYPE is a synonym, but ENGINE is the preferred option name. # - # We have to use the hash directly here since otherwise there is no way - # to remove options. - my $options = ( $table->{options} ||= []); + my $options = $table->options; # If multiple option names, normalize to the first one if (ref $opt_name) {