Commit fbed7b1
Chris Elder
FAB-2560 GetQueryResult() query re-write is incorrect
Query is getting re-written in fabric with duplicate "data" wrappers.
Query in chaincode:
{"selector":{"docTypeId":3,"oriRe":"SMP","ctB":"CTB","valDt":"1990-12-24",
"orB":"YYY","tD":"TD","cuVoB":52,"cuIoBu":"AA","cuSt":"NA"}}
Result:
2017-03-01 06:48:14.782 UTC [statecouchdb] ApplyQueryWrapper ->
DEBU 441 Rewritten query with data wrapper: {"selector":{"$and":[
{"chaincodeid":"marbles"},
{"data.cuIoBu":"AA","data.cuVoB":52,"data.data.ctB":"CTB","data.data.cuSt":"NA",
"data.docTypeId":3,"data.orB":"YYY","data.oriRe":"SMP","data.tD":"TD"
"data.valDt":"1990-12-24"}]}}
Multiple fields have the "data" wrapper repeated.
Change-Id: I50445f15222dbdf5bd61e475666c2c34fde6fda4
Signed-off-by: Chris Elder <chris.elder@us.ibm.com>1 parent 803962b commit fbed7b1
File tree
1 file changed
+7
-1
lines changed- core/ledger/kvledger/txmgmt/statedb/statecouchdb
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
| 202 | + | |
202 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
203 | 209 | | |
204 | 210 | | |
205 | 211 | | |
| |||
0 commit comments