Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
None
-
None
-
1
Description
Attempting to perform a query which returns multiple rows using the `SELECT RAW` statement-type will cause libcouchbase to incorrectly parse the results entry. This incorrect parsing causes something such as `{...,\nresults: [1, 2]\n...}` to invoke the row callback twice, firstly with `1,`, then again with `2\n`. Note that the row data is including extraneous bytes of the row. This causes all non-final rows to contain the trailing comma leading to a JSON parse failure (the final row contains an extraneous `\n`, but this is skipped during JSON parsing.