Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1028

N1QL RAW results fail to be parsed correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • library
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            avsej Sergey Avseyev
            brett19 Brett Lawson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty