From: Justin Hunter Date: Mon, 18 Jan 2010 01:36:30 +0000 (-0700) Subject: database_events as an array, not arrayref X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=4badd6e23f5a5b12497bc146ab96534e59b65a95;p=dbsrgits%2FSQL-Translator-2.0-ish.git database_events as an array, not arrayref --- diff --git a/lib/SQL/Translator/Producer/SQL/SQLite.pm b/lib/SQL/Translator/Producer/SQL/SQLite.pm index 7a3df33..e4b5025 100644 --- a/lib/SQL/Translator/Producer/SQL/SQLite.pm +++ b/lib/SQL/Translator/Producer/SQL/SQLite.pm @@ -321,11 +321,11 @@ method create_trigger(Trigger $trigger, $options?) { my @statements; my $trigger_name = $trigger->name; - my $events = $trigger->database_events; - for my $evt ( @$events ) { + my @events = $trigger->database_events; + for my $evt ( @events ) { my $trig_name = $trigger_name; - if (@$events > 1) { + if (@events > 1) { $trig_name .= "_$evt"; # warn "Multiple database events supplied for trigger '$trigger_name', ",