From: Peter Rabbitson Date: Tue, 28 Apr 2009 07:20:34 +0000 (+0000) Subject: Minor POD fix X-Git-Tag: v0.11008~181 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=94929d128c686fa34bcc6e98b52bdedaa5878673;p=dbsrgits%2FSQL-Translator.git Minor POD fix Fix a possible undef dereference in SQLite producer --- diff --git a/lib/SQL/Translator/Producer/MySQL.pm b/lib/SQL/Translator/Producer/MySQL.pm index 1ded991..40c59f2 100644 --- a/lib/SQL/Translator/Producer/MySQL.pm +++ b/lib/SQL/Translator/Producer/MySQL.pm @@ -45,7 +45,7 @@ provides the desired version for the target database. By default MySQL v3 is assumed, and statements pertaining to any features introduced in later versions (e.g. CREATE VIEW) are not produced. -Valid version specifiers for C are listed L +Valid version specifiers for C are listed L =head2 Table Types diff --git a/lib/SQL/Translator/Producer/SQLite.pm b/lib/SQL/Translator/Producer/SQLite.pm index c1fa840..567db85 100644 --- a/lib/SQL/Translator/Producer/SQLite.pm +++ b/lib/SQL/Translator/Producer/SQLite.pm @@ -371,7 +371,7 @@ sub create_trigger { push @create, "DROP TRIGGER IF EXISTS $name" if $add_drop; my $events = $trigger->database_events; - die "Can't handle multiple events in triggers" if @$events > 1; + die "Can't handle multiple events in triggers" if @{ $events || [] } > 1; my $action = "";