Description
Steps to reproduce:
Using Node.js SDK 3.2.4, I was trying to drop the default '#primary' index as shown below:
await cluster.queryIndexes().dropPrimaryIndex('travel-sample') |
But I got the following error:
ParsingFailureError: parsing failure
|
at Object.translateCppError (/Users/mariashodunke/Couchbase/docs/docs-sdk-nodejs/node_modules/couchbase/dist/bindingutilities.js:194:20) |
at /Users/mariashodunke/Couchbase/docs/docs-sdk-nodejs/node_modules/couchbase/dist/connection.js:248:54 { |
cause: LibcouchbaseError: libcouchbase error 208 |
at Object.translateCppError (/Users/mariashodunke/Couchbase/docs/docs-sdk-nodejs/node_modules/couchbase/dist/bindingutilities.js:174:21) |
at /Users/mariashodunke/Couchbase/docs/docs-sdk-nodejs/node_modules/couchbase/dist/connection.js:248:54 { |
code: 208 |
},
|
context: QueryErrorContext {
|
first_error_code: 3000, |
first_error_message: 'syntax error - at `travel-sample`', |
statement: 'DROP PRIMARY INDEX `travel-sample`', |
client_context_id: 'b780234f8a59b139', |
parameters: '', |
http_response_code: 400, |
http_response_body: '' |
}
|
}
|
Expected Result:
The default '#primary' index should be deleted