Fixed comment
[yaz-moved-to-github.git] / src / rpn2cql.c
index 1fa9aa3..09e137b 100644 (file)
@@ -59,10 +59,9 @@ static const char *lookup_relation_index_from_attr(Z_AttributeList *attributes)
             {
                 /* Only support for numeric relation */
                 Odr_int *relation = ae->value.numeric;
-                /* map this numeric to represetation in cql */
+                /* map this numeric to representation in CQL */
                 switch (*relation) {
-                    /* Unsure on whether this is the relation attribute 
-                       const? */
+                    /* Unsure on whether this is the relation attribute constants? */
                     case Z_ProximityOperator_Prox_lessThan: 
                         return "<";
                     case Z_ProximityOperator_Prox_lessThanOrEqual: 
@@ -75,18 +74,18 @@ static const char *lookup_relation_index_from_attr(Z_AttributeList *attributes)
                         return ">"; 
                     case Z_ProximityOperator_Prox_notEqual: 
                         return "<>"; 
-
-                    /* phonetic */
+                                                
                     case 100: 
-                        return "??"; 
+                        /* phonetic is not supported in CQL */
+                        return 0; 
 
-                        /* stem */
                     case 101: 
-                        return "??"; 
+                        /* stem is not supported in CQL */
+                        return 0; 
 
-                        /* relevance */
                     case 102: 
-                        return "??"; 
+                        /* relevance is not supported in CQL ?*/
+                        return 0; 
                 otherwise: 
                         /* Invalid relation */
                         return 0;
@@ -119,7 +118,7 @@ static int rpn2cql_attr(cql_transform_t ct,
     if (!index)
         index = lookup_index_from_string_attr(attributes);
 
-    /* Attempt to fix bug #2978): Look for a relation attribute */
+    /* Attempt to fix bug #2978: Look for a relation attribute */
     if (!relation) 
         relation = lookup_relation_index_from_attr(attributes);