Index: /trunk/glueforge/glueforge.in
===================================================================
--- /trunk/glueforge/glueforge.in	(revision 4010)
+++ /trunk/glueforge/glueforge.in	(revision 4011)
@@ -3,5 +3,5 @@
 # Copyright (C) 2005  Joshua Hoblitt
 #
-# $Id: glueforge.in,v 1.14 2005-05-20 22:53:49 jhoblitt Exp $
+# $Id: glueforge.in,v 1.15 2005-05-21 00:37:43 jhoblitt Exp $
 
 use strict;
@@ -98,4 +98,5 @@
     'createtable_c.tt'      => "$output/tests/createtable.c",
     'droptable_c.tt'        => "$output/tests/droptable.c",
+    'insert_c.tt'           => "$output/tests/insert.c",
 );
 
@@ -162,5 +163,5 @@
         return {
             ctype   => "bool",
-            mtype   => 'PS_META_STR',
+            mtype   => 'PS_META_BOOL',
             test    => 'true',
         };
Index: /trunk/glueforge/templates/psdb/insert_at.tt
===================================================================
--- /trunk/glueforge/templates/psdb/insert_at.tt	(revision 4011)
+++ /trunk/glueforge/templates/psdb/insert_at.tt	(revision 4011)
@@ -0,0 +1,8 @@
+AT_SETUP([[% namespace %]Insert() - Insert a single row into a table])
+AT_KEYWORDS([[% namespace %]Insert])
+
+AT_CHECK([dbsetup])
+AT_CHECK([insert])
+AT_CHECK([dbcleanup])
+
+AT_CLEANUP
Index: /trunk/glueforge/templates/psdb/insert_c.tt
===================================================================
--- /trunk/glueforge/templates/psdb/insert_c.tt	(revision 4011)
+++ /trunk/glueforge/templates/psdb/insert_c.tt	(revision 4011)
@@ -0,0 +1,30 @@
+[% USE format -%]
+[% indented = format('%-15s %s') -%]
+#include <pslib.h>
+#include <[% pkg_name %].h>
+#include <stdlib.h>
+
+int main () {
+    psDB            *dbh;
+    bool            status;
+
+    dbh = psDBInit("localhost", "test", NULL, "test");
+    if (!dbh) {
+        exit(EXIT_FAILURE);
+    }
+
+    status = [% namespace %]Insert(dbh, 
+[%- SET i = 0 -%]
+[%- FOREACH item = columns -%]
+    [%- IF i == 0 -%][%- i = 1 -%][%- ELSE -%],[%- END -%] [%- item.test -%]
+[%- END -%]
+);
+
+    if (!status) {
+        exit(EXIT_FAILURE);
+    }
+
+    psDBCleanup(dbh);
+
+    exit(EXIT_SUCCESS);
+}
Index: /trunk/glueforge/templates/psdb/tests_makefile_am.tt
===================================================================
--- /trunk/glueforge/templates/psdb/tests_makefile_am.tt	(revision 4010)
+++ /trunk/glueforge/templates/psdb/tests_makefile_am.tt	(revision 4011)
@@ -55,5 +55,6 @@
 	cleanup \
 	createtable \
-    droptable
+    droptable \
+    insert
 
 AM_CPPFLAGS = -I$(top_srcdir)/src$
Index: /trunk/glueforge/templates/psdb/testsuite_at.tt
===================================================================
--- /trunk/glueforge/templates/psdb/testsuite_at.tt	(revision 4010)
+++ /trunk/glueforge/templates/psdb/testsuite_at.tt	(revision 4011)
@@ -14,2 +14,4 @@
 
 [% INCLUDE droptable_at.tt %]
+
+[% INCLUDE insert_at.tt %]
