Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 4043)
+++ trunk/psLib/src/db/psDB.c	(revision 4106)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2005-05-28 01:01:32 $
+ *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2005-06-03 23:48:38 $
  *
  *  Copyright 2005 Joshua Hoblitt, University of Hawaii
@@ -23,5 +23,7 @@
 #include <stdarg.h>
 #include <string.h>
+#undef __STRICT_ANSI__
 #include <stdlib.h>
+#define __STRICT_ANSI__
 #include <math.h>
 #include <mysql.h>
@@ -807,4 +809,10 @@
                               : NULL;
         } else if (item->type == PS_TYPE_BOOL) {
+            // XXX: ASC HACK NOTE (2005/06/03): set extreme bytes to the
+            // boolean character value.  sizeof(psBool)==4 which triggers an
+            // endianess issue in the MySQL conversion (reading only 1 byte),
+            // on Macintosh hardware (and maybe others?)
+            unsigned int c  = (unsigned int)item->data.B;
+            item->data.S32  = (unsigned int)((c<<24) | c);
             bind[i].length  = 0;
             bind[i].buffer  = &item->data.B;
