Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 17869)
+++ trunk/psLib/src/db/psDB.c	(revision 17871)
@@ -23,5 +23,5 @@
  * 4.1.2 or newer is required.
  *
- * $Id: psDB.c,v 1.159 2008-05-31 00:42:35 jhoblitt Exp $
+ * $Id: psDB.c,v 1.160 2008-05-31 02:16:52 jhoblitt Exp $
  */
 
@@ -2321,5 +2321,6 @@
     // signed or unsigned.  The result is this ugly conversion from
     // mysql -> ascii -> ptype
-    if (flags & UNSIGNED_FLAG) {
+    // XXX it appears that TIMESTAMP fields get marked as being unsigned...
+    if ((flags & UNSIGNED_FLAG) && strncmp(sqlType, "DATETIME", 9)) {
         psString new = NULL;
         psStringAppend(&new, "%s UNSIGNED", sqlType);
