getStateByRange - End of String indication for exact search

Viewed 20

When using getStateByRange in Java chaincode (and presumably other languages also), a search for "asset10" through "asset11" will retrieve asset10, and anything with characters after asset10 (e.g. asset100, asset101...).

Is there any character or control sequence to prevent this, and just retrieve asset10? Unicode NULL and end of string don't appear to make any difference.

0 Answers
Related