fix for csv

This commit is contained in:
Arndt 2015-03-30 14:20:44 +02:00
parent 0573773287
commit deb3b0eb02

View file

@ -282,9 +282,6 @@ public final class BExpressionContext
public String getKeyValueDescription( boolean inverseDirection, byte[] ab )
{
int inverseBitByteIndex = meta.readVarLength ? 0 : 7;
// int abLen = ab.length;
StringBuilder sb = new StringBuilder( 200 );
decode( lookupData, inverseDirection, ab );
for( int inum = 0; inum < lookupValues.size(); inum++ ) // loop over lookup names
@ -293,7 +290,8 @@ public final class BExpressionContext
String value = va[lookupData[inum]].toString();
if ( value != null && value.length() > 0 )
{
sb.append( " " + lookupNames.get( inum ) + "=" + value );
if ( sb.length() > 0 ) sb.append( ' ' );
sb.append(lookupNames.get( inum ) + "=" + value );
}
}
return sb.toString();
@ -617,6 +615,7 @@ public final class BExpressionContext
lookupData[inum] = valueIndex;
}
/**
* special hack for yes/proposed relations:
* add a lookup value if not yet a smaller, >1 value was added