[LON-CAPA-cvs] cvs: loncom /interface lonmysql.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 02 Jun 2003 17:01:05 -0000


matthew		Mon Jun  2 13:01:05 2003 EDT

  Modified files:              
    /loncom/interface	lonmysql.pm 
  Log:
  Update to drop_table to make it clear out the internal bookkeeping for
  the tables it drops.
  
  
Index: loncom/interface/lonmysql.pm
diff -u loncom/interface/lonmysql.pm:1.14 loncom/interface/lonmysql.pm:1.15
--- loncom/interface/lonmysql.pm:1.14	Mon Jun  2 12:44:01 2003
+++ loncom/interface/lonmysql.pm	Mon Jun  2 13:01:05 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # MySQL utility functions
 #
-# $Id: lonmysql.pm,v 1.14 2003/06/02 16:44:01 matthew Exp $
+# $Id: lonmysql.pm,v 1.15 2003/06/02 17:01:05 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1038,6 +1038,7 @@
         return undef;
     }
     $debugstring = $command;
+    delete($Tables{$table_id}); # remove any knowledge of the table
     return 1; # if we got here there was no error, so return a 'true' value
 }