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

Example N1QL statements do seem to work in "Hello Couchbase" example

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha.6
    • 3.0.0-beta.3
    • docs
    • None
    • 1
    • SDK1: GA and Priority List

    Description

      This doesn't appear to create an index even if the "bucket-name" is changed to a valid name:

      cluster.query('CREATE PRIMARY INDEX ON bucket-name')
      

      There is no output here when the iteration completes:

      row_iter = cluster.query    (N1QLQuery('SELECT name FROM bucket-name WHERE ' + \
                                         '$1 IN interests', 'African Swallows'))
       
      for row in row_iter: print(row)
      

      This could be a user error; I couldn't verify traffic via Wireshark because it won't pick up my adapter filter and fiddler doesn't pick up HTTP request/response.

      Attachments

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

        Activity

          david.kelly David Kelly added a comment -

          This has changed – I do:

          // Some comments here
          cluster.query("select * from `default`")
          

          and now get a QueryResult object back, as we should.

          david.kelly David Kelly added a comment - This has changed – I do: / / Some comments here cluster.query( "select * from `default`" ) and now get a QueryResult object back, as we should.

          People

            david.kelly David Kelly
            jmorris Jeff Morris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty