Index: trunk/psLib/src/db/psDB.c
===================================================================
--- trunk/psLib/src/db/psDB.c	(revision 9178)
+++ trunk/psLib/src/db/psDB.c	(revision 9179)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.94 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-10-04 03:11:52 $
+ *  @version $Revision: 1.95 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-10-04 03:16:17 $
  *
  *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
@@ -1318,5 +1318,5 @@
         // it's just a regular key if it matchs "Key" but not "Primary Key"
         if (strstr(item->comment, "Key")
-                && (!strstr(item->comment, "Primary Key"))) {
+                && (strstr(item->comment, "Primary Key") == NULL)) {
             psStringAppend(&query, ", KEY(%s)", item->name);
         } else if (strstr(item->comment, "AUTO_INCREMENT")) {
