Details
-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
2.6.3
-
None
-
0
Description
It has been observed that the gocb SDK is having an issue where the mutation is happening when a query is executed with the query option Readonly=true without throwing an error.
// Set the readonly flag to true
options := &gocb.QueryOptions
// Execute the scoped query
mutation := fmt.Sprintf("UPDATE `_default` SET name='40-Mile Air New %v' WHERE META().id='airline_10'", time.Now().Unix())
Steps:
1) Install couchbase (say Enterprise Edition 7.5.0 build 4144) and install travel-sample
2) Download the attached.
3) go run main.go
See the mutation is getting successful even Readonly=true but expecting an error.