Uploaded image for project: 'Couchbase PHP client library'
  1. Couchbase PHP client library
  2. PCBC-168

cannot query with compound key

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Critical
    • None
    • 1.1.1
    • library
    • Security Level: Public
    • None

    Description

      A view has been created and it's being queried properly, but the compound keys seem to be getting quoted.

      Is there a workaround for this approach? Is something like the ComplexKey class used in Java needed here in PHP?

      A basic investigation shows:
      GET /default/design/debug/_view/user2hour?startkey=%22%5C%22%5Buser_event%5D%5C%22%22&endkey=%22%5C%22%5Buser_event_%5D%5C%22%22&group=true << doesn't work
      GET /default/design/debug/_view/user2hour?startkey=%5B%22user_event%22%5D&endkey=%5B%22user_event_%22%5D&group=true HTTP/1.1 << works

      So it seems it's extra quoting that's going on.

      See also:
      http://www.couchbase.com/forums/thread/view-array-key-started-behave-differently-http-request-and-php-api

      Attachments

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

        Activity

          People

            mnunberg Mark Nunberg (Inactive)
            ingenthr Matt Ingenthron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty