Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 23486)
+++ trunk/psLib/src/db/psDB.c	(revision 23507)
@@ -1447,5 +1447,5 @@
 
     mysqlType       *mType;             // type tmp variable
-    static bool     isNull = true;      // used in a MYSQL_BIND to indicate NULL
+    static my_bool isNull = true;       // used in a MYSQL_BIND to indicate NULL
 
     MYSQL_BIND *bind = mysqlRow->bind;
@@ -1472,7 +1472,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.U8;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U8)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U8) ? &isNull : NULL;
                 break;
             }
@@ -1480,7 +1478,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.U16;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U16)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U16) ? &isNull : NULL;
                 break;
             }
@@ -1488,7 +1484,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.U32;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U32)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U32) ? &isNull : NULL;
                 break;
             }
@@ -1496,7 +1490,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.U64;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U64)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.U64) ? &isNull : NULL;
                 break;
             }
@@ -1504,7 +1496,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.S8;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S8)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S8) ? &isNull : NULL;
                 break;
             }
@@ -1512,7 +1502,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.S16;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S16)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S16) ? &isNull : NULL;
                 break;
             }
@@ -1520,7 +1508,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.S32;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S32)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S32) ? &isNull : NULL;
                 break;
             }
@@ -1528,7 +1514,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.S64;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S64)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.S64) ? &isNull : NULL;
                 break;
             }
@@ -1536,7 +1520,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.F32;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.F32)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.F32) ? &isNull : NULL;
                 break;
             }
@@ -1544,7 +1526,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.F64;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.F64)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.F64) ? &isNull : NULL;
                 break;
             }
@@ -1558,7 +1538,5 @@
                 bind[i].length  = 0;
                 bind[i].buffer  = &item->data.B;
-                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.B)
-                                  ? (my_bool *)&isNull
-                                  : NULL;
+                bind[i].is_null = psDBIsPTypeNaN(item->type, &item->data.B) ? &isNull : NULL;
                 break;
             }
@@ -1571,7 +1549,5 @@
                     bind[i].length  = &bind[i].buffer_length;
                     bind[i].buffer  = psStringCopy(item->data.V);
-                    bind[i].is_null = *item->data.str == '\0'
-                                      ? (my_bool *)&isNull
-                                      : NULL;
+                    bind[i].is_null = *item->data.str == '\0' ? &isNull : NULL;
                 } else {
                     // handles the case of NULL as a NULL database value
@@ -1579,5 +1555,5 @@
                     bind[i].length  = &bind[i].buffer_length;
                     bind[i].buffer  = NULL;
-                    bind[i].is_null = (my_bool *)&isNull;
+                    bind[i].is_null = &isNull;
                 }
                 break;
@@ -1625,5 +1601,5 @@
                     bind[i].length  = &bind[i].buffer_length;
                     bind[i].buffer  = NULL;
-                    bind[i].is_null = (my_bool *)&isNull;
+                    bind[i].is_null = &isNull;
                 }
                 break;
