Fix left-right truncation fix
authorDennis Schafroth <dennis@indexdata.com>
Thu, 7 Apr 2011 12:05:32 +0000 (14:05 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 7 Apr 2011 12:05:32 +0000 (14:05 +0200)
src/rpn2cql.c

index ea21793..b1063a1 100644 (file)
@@ -182,11 +182,11 @@ static int checkForTruncation(int flag, Z_AttributeList *attributes)
 };
 
 static int checkForLeftTruncation(Z_AttributeList *attributes) {
-       return checkForTruncation(1, attributes);
+       return checkForTruncation(2, attributes);
 }
 
 static int checkForRightTruncation(Z_AttributeList *attributes) {
-       return checkForTruncation(2, attributes);
+       return checkForTruncation(1, attributes);
 };
 
 static int rpn2cql_simple(cql_transform_t ct,