rev 1418 - trunk/mariachi/lib/Mariachi

[prev] [thread] [next] [lurker] [Date index for 2003/10/16]

From: richardc
Subject: rev 1418 - trunk/mariachi/lib/Mariachi
Date: 02:05 on 16 Oct 2003
Author: richardc
Date: 2003-10-16 02:05:52 +0100 (Thu, 16 Oct 2003)
New Revision: 1418

Modified:
   trunk/mariachi/lib/Mariachi/DBI.pm
Log:
later has passed

Modified: trunk/mariachi/lib/Mariachi/DBI.pm
===================================================================
--- trunk/mariachi/lib/Mariachi/DBI.pm	2003-10-15 22:53:01 UTC (rev 1417)
+++ trunk/mariachi/lib/Mariachi/DBI.pm	2003-10-16 01:05:52 UTC (rev 1418)
@@ -21,17 +21,17 @@
         #warn $sql;
         $self->db_Main->do( $sql )
           or die "couldn't create '$table->{name}': " . $self->db_Main->errstr;
+        $table->{class}->set_up_table( $table->{name} );
     }
 
     # and now set up the tables and the has_a's
     for my $table ( @create_later ) {
-        # ??? this next line seems to segv.  badness
-        $table->{class}->set_up_table( $table->{name} );
         while ( my ($k, $v) = each %{ $table->{fields} }) {
             next unless $v;
             $table->{class}->has_a( $k => $v );
         }
     }
+    warn "later has passed";
 }
 
 # I want to have my cake, and eat it.  Maybe if I eat it *later*... :)

Generated at 13:57 on 01 Jul 2004 by mariachi 0.52