Fixed so they test for empty list reference_fields and not the old undef return.
Mark Addison [Sun, 29 Feb 2004 16:07:34 +0000 (16:07 +0000)]
t/17sqlfxml-producer.t
t/24yaml.t

index 79f28a1..4e7af3c 100644 (file)
@@ -117,6 +117,7 @@ $ans = <<EOXML;
         <sqlt:type>PRIMARY KEY</sqlt:type>
         <sqlt:fields>id</sqlt:fields>
         <sqlt:reference_table></sqlt:reference_table>
+        <sqlt:reference_fields></sqlt:reference_fields>
         <sqlt:on_delete></sqlt:on_delete>
         <sqlt:on_update></sqlt:on_update>
         <sqlt:match_type></sqlt:match_type>
@@ -129,6 +130,7 @@ $ans = <<EOXML;
         <sqlt:type>UNIQUE</sqlt:type>
         <sqlt:fields>email</sqlt:fields>
         <sqlt:reference_table></sqlt:reference_table>
+        <sqlt:reference_fields></sqlt:reference_fields>
         <sqlt:on_delete></sqlt:on_delete>
         <sqlt:on_update></sqlt:on_update>
         <sqlt:match_type></sqlt:match_type>
@@ -298,8 +300,8 @@ $ans = <<EOXML;
       <sqlt:index name="titleindex" type="NORMAL" fields="title" options="" />
     </sqlt:indices>
     <sqlt:constraints>
-      <sqlt:constraint name="" type="PRIMARY KEY" fields="id" reference_table="" on_delete="" on_update="" match_type="" expression="" options="" deferrable="1" />
-      <sqlt:constraint name="" type="UNIQUE" fields="email" reference_table="" on_delete="" on_update="" match_type="" expression="" options="" deferrable="1" />
+      <sqlt:constraint name="" type="PRIMARY KEY" fields="id" reference_table="" reference_fields="" on_delete="" on_update="" match_type="" expression="" options="" deferrable="1" />
+      <sqlt:constraint name="" type="UNIQUE" fields="email" reference_table="" reference_fields="" on_delete="" on_update="" match_type="" expression="" options="" deferrable="1" />
     </sqlt:constraints>
   </sqlt:table>
 </sqlt:schema>
index 6d9e521..5aa41ee 100644 (file)
@@ -23,7 +23,7 @@ schema:
           on_delete: ''
           on_update: ''
           options: []
-          reference_fields: ~
+          reference_fields: []
           reference_table: ''
           type: PRIMARY KEY
         - deferrable: 1
@@ -35,7 +35,7 @@ schema:
           on_delete: ''
           on_update: ''
           options: []
-          reference_fields: ~
+          reference_fields: []
           reference_table: ''
           type: UNIQUE
       fields:
@@ -121,7 +121,7 @@ schema:
           on_delete: ''
           on_update: ''
           options: []
-          reference_fields: ~
+          reference_fields: []
           reference_table: ''
           type: CHECK
         - deferrable: 1
@@ -134,7 +134,7 @@ schema:
           on_delete: ''
           on_update: ''
           options: []
-          reference_fields: ~
+          reference_fields: []
           reference_table: ''
           type: PRIMARY KEY
       fields: