Index: /trunk/psLib/src/db/psDB.c
===================================================================
--- /trunk/psLib/src/db/psDB.c	(revision 8460)
+++ /trunk/psLib/src/db/psDB.c	(revision 8461)
@@ -12,6 +12,6 @@
  *  @author Joshua Hoblitt
  *
- *  @version $Revision: 1.83 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-08-15 03:23:40 $
+ *  @version $Revision: 1.84 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-08-22 02:41:22 $
  *
  *  Copyright (C) 2005-2006  Joshua Hoblitt, University of Hawaii
@@ -1649,9 +1649,13 @@
             psStringAppend(&query, "%s IS NULL", item->name);
         } else {
-            // XXX ASC NOTE: we should have a better match for
-            // char & varchar columns than this.  LIKE is OK for
-            // very large TEXT columns that really shouldn't be
-            // used in a where clause...
-            psStringAppend(&query, "%s LIKE '%s'", item->name, item->data.V);
+            if (item->comment && strstr(item->comment, "LIKE")) {
+                // XXX ASC NOTE: we should have a better match for
+                // char & varchar columns than this.  LIKE is OK for
+                // very large TEXT columns that really shouldn't be
+                // used in a where clause...
+                psStringAppend(&query, "%s LIKE '%s'", item->name, item->data.V);
+            } else {
+                psStringAppend(&query, "%s = '%s'", item->name, item->data.V);
+            }
         }
     } else {
