You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main.rs
+4-15
Original file line number
Diff line number
Diff line change
@@ -631,22 +631,12 @@ fn main() {
631
631
if !tables.is_empty(){// This is a subtable; write the first column value of the parent table as the first column of the subtable (for use as a foreign key)
632
632
let key = tables.last().unwrap().columns[0].value.borrow();
633
633
if key.is_empty() && !settings.hush_warning{println!("Warning: subtable {} has no foreign key for parent (you may need to add a 'seri' column)", table.name);}
634
-
table.write(&key);
634
+
table.write(&format!("{}\t",key));
635
635
ifletSome(domain) = table.domain.as_ref(){
636
+
table.write(&format!("{}\n", table.columns[0].value.borrow()));// This is a many-to-may relation; write the two keys into the link table
636
637
letmut domain = domain.borrow_mut();
637
-
let found = match domain.map.get(&table.columns[0].value.borrow().to_string()){
0 commit comments