Combined patches from RT#70734 and RT#44769
[dbsrgits/SQL-Translator.git] / t / 48xml-to-sqlite.t
index 9502348..c567bbc 100644 (file)
@@ -49,7 +49,7 @@ CREATE TABLE 'Basic' (
   'emptytagdef' varchar DEFAULT '',
   'another_id' int(10) DEFAULT 2,
   'timest' timestamp,
-  FOREIGN KEY('another_id') REFERENCES 'Another'()
+  FOREIGN KEY ('another_id') REFERENCES 'Another'('id')
 );
 
 CREATE INDEX 'titleindex' ON 'Basic' ('title');
@@ -92,7 +92,7 @@ my @sql = $sqlt->translate(
     filename => $xmlfile,
 ) or die $sqlt->error;
 
-eq_or_diff(\@sql, 
+eq_or_diff(\@sql,
           [
           'BEGIN TRANSACTION',
           q<DROP TABLE 'Basic'>,
@@ -107,7 +107,7 @@ eq_or_diff(\@sql,
   'emptytagdef' varchar DEFAULT '',
   'another_id' int(10) DEFAULT 2,
   'timest' timestamp,
-  FOREIGN KEY('another_id') REFERENCES 'Another'()
+  FOREIGN KEY ('another_id') REFERENCES 'Another'('id')
 )>,
           q<CREATE INDEX 'titleindex' ON 'Basic' ('title')>,
           q<CREATE UNIQUE INDEX 'emailuniqueindex' ON 'Basic' ('email')>,