From: Ian Jackson Date: Tue, 27 Apr 2021 17:46:04 +0000 (+0100) Subject: mg-schema-test-database: Be slightly more defensive X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=93613dfbe692142bac1a1e97bbd33242064d6870;p=osstest.git mg-schema-test-database: Be slightly more defensive Signed-off-by: Ian Jackson --- diff --git a/mg-schema-test-database b/mg-schema-test-database index e69b988..b49fbec 100755 --- a/mg-schema-test-database +++ b/mg-schema-test-database @@ -381,7 +381,8 @@ END print "sequences+=\" $1\"\n"; } elsif (m/^CREATE TABLE (\w+)/) { $table=$1; - } elsif (m/^\s*flight\s+integer/) { + } elsif (m/^\s*flight\s+integer\s/) { + die unless $table; print "ftables+=\" $table\"\n"; } elsif ($table && m/^\)\;$/) { print "tables+=\" $table\"\n";