Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-762

You cannot use positional or named parameters in N1QLQuery for a bucket name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 3.0.0-rc
    • 3.0.0-beta.2
    • None
    • None
    • 1

    Description

      If you have a query like this:

      N1QLQuery("select * from `$1`", "default")

      you would expect this to work. The body even looks correct. But it fails with an error about not finding the keyspace, and it really looked for a bucket named $1. Same for named params. Yet, putting it later in the query:
      N1QLQuery("select * from `default` where field = $1", "foo")

      works fine. Could be the backticks? Minor, but just cost me about an hour looking elsewhere for issues. Marking as 3.0.0 but since it is an existing issue, maybe could be pushed back? Also we are re-implementing some of this stuff, so maybe we will fix it in the re-implementation.

      Attachments

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

        Activity

          People

            Ellis.Breen Ellis Breen
            david.kelly David Kelly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty