Index: /trunk/glueforge/glueforge.in
===================================================================
--- /trunk/glueforge/glueforge.in	(revision 4004)
+++ /trunk/glueforge/glueforge.in	(revision 4005)
@@ -3,5 +3,5 @@
 # Copyright (C) 2005  Joshua Hoblitt
 #
-# $Id: glueforge.in,v 1.12 2005-05-20 02:53:36 jhoblitt Exp $
+# $Id: glueforge.in,v 1.13 2005-05-20 03:32:11 jhoblitt Exp $
 
 use strict;
@@ -94,4 +94,5 @@
     'init_c.tt'             => "$output/tests/cleanup.c",
     'createtable_c.tt'      => "$output/tests/createtable.c",
+    'droptable_c.tt'        => "$output/tests/droptable.c",
 );
 
Index: /trunk/glueforge/templates/psdb/code.tt
===================================================================
--- /trunk/glueforge/templates/psdb/code.tt	(revision 4004)
+++ /trunk/glueforge/templates/psdb/code.tt	(revision 4005)
@@ -9,3 +9,5 @@
 [% INCLUDE createtable.tt %]
 
+[% INCLUDE droptable.tt %]
+
 [% INCLUDE insert.tt %]
Index: /trunk/glueforge/templates/psdb/droptable.tt
===================================================================
--- /trunk/glueforge/templates/psdb/droptable.tt	(revision 4005)
+++ /trunk/glueforge/templates/psdb/droptable.tt	(revision 4005)
@@ -0,0 +1,7 @@
+bool [% namespace %]DropTable(psDB *dbh) {
+    bool            status;
+
+    status = psDBDropTable(dbh, [% namespace FILTER upper %]_TABLE_NAME);
+
+    return status;
+}
Index: /trunk/glueforge/templates/psdb/droptable_at.tt
===================================================================
--- /trunk/glueforge/templates/psdb/droptable_at.tt	(revision 4005)
+++ /trunk/glueforge/templates/psdb/droptable_at.tt	(revision 4005)
@@ -0,0 +1,9 @@
+AT_SETUP([[% namespace %]DropTable() - Deletes a [% table_name %] table])
+AT_KEYWORDS([[% namespace %]DropTable])
+
+# make sure the table is not there.
+AT_CHECK([dbsetup])
+AT_CHECK([droptable])
+AT_CHECK([dbcleanup])
+
+AT_CLEANUP
Index: /trunk/glueforge/templates/psdb/droptable_c.tt
===================================================================
--- /trunk/glueforge/templates/psdb/droptable_c.tt	(revision 4005)
+++ /trunk/glueforge/templates/psdb/droptable_c.tt	(revision 4005)
@@ -0,0 +1,18 @@
+#include <pslib.h>
+#include <[% pkg_name %].h>
+#include <stdlib.h>
+
+int main () {
+    psDB            *dbh;
+
+    dbh = psDBInit("localhost", "test", NULL, "test");
+    if (!dbh) {
+        exit(EXIT_FAILURE);
+    }
+
+    if(![% namespace %]DropTable(dbh)) {
+        exit(EXIT_FAILURE);
+    }
+
+    exit(EXIT_SUCCESS);
+}
Index: /trunk/glueforge/templates/psdb/tests_makefile_am.tt
===================================================================
--- /trunk/glueforge/templates/psdb/tests_makefile_am.tt	(revision 4004)
+++ /trunk/glueforge/templates/psdb/tests_makefile_am.tt	(revision 4005)
@@ -53,5 +53,6 @@
 	init \
 	cleanup \
-	createtable
+	createtable \
+    droptable
 
 AM_CPPFLAGS = -I$(top_srcdir)/src$
Index: /trunk/glueforge/templates/psdb/testsuite_at.tt
===================================================================
--- /trunk/glueforge/templates/psdb/testsuite_at.tt	(revision 4004)
+++ /trunk/glueforge/templates/psdb/testsuite_at.tt	(revision 4005)
@@ -10,2 +10,4 @@
 #m4_include([createtable.at])
 [% INCLUDE createtable_at.tt %]
+
+[% INCLUDE droptable_at.tt %]
