Default sqlite_version so we dont get uninitialised errors when calling from ::Diff
Jess Robinson [Tue, 21 Oct 2008 12:45:43 +0000 (12:45 +0000)]
lib/SQL/Translator/Producer/SQLite.pm

index 99fc885..a8d6681 100644 (file)
@@ -153,7 +153,7 @@ sub create_table
     my $table_name = $table->name;
     my $no_comments = $options->{no_comments};
     my $add_drop_table = $options->{add_drop_table};
-    my $sqlite_version = $options->{sqlite_version};
+    my $sqlite_version = $options->{sqlite_version} || 0;
 
     debug("PKG: Looking at table '$table_name'\n");