我有一個具有ORDER BY子句的命名查詢:ORDER BY在命名查詢不工作
`query OrdersByRequesterSort {
description: "Select all orders by requester"
statement:
SELECT org.test.sample.Order
WHERE (requester == _$requesterParam)
ORDER BY [placeTimestamp DESC]
}`
這是我的查詢,我在這裏看到後patterened:
https://hyperledger.github.io/composer/reference/query-language.html
當我嘗試執行此查詢時出現以下錯誤:
`
{
"error": {
"statusCode": 500,
"name": "Error",
"message": "Error trying to query chaincode. Error: chaincode error (status: 500, message: Error: http: read on closed response body)",
"stack": "Error: Error trying to query chaincode. Error: chaincode error (status: 500, message: Error: http: read on closed response body)\n at channel.queryByChaincode.then.catch (/Users/bower/.nvm/versions/node/v6.3.0/lib/node_modules/composer-rest-server/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:779:34)"
}
}`
上午我做錯了什麼?這是否支持?
在此先感謝。