Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-167

ComplexKey converts longs to strings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.1.0
    • 1.1-beta
    • None
    • Security Level: Public
    • None

    Description

      I previously added this as a comment on JCBC-41

      Query q1 = new Query();
      long time1 = 0;
      long time2 = 99999999;
      long time3 = 99999999999l;

      q1.setRangeStart(ComplexKey.of(time1));
      q1.setRangeEnd(ComplexKey.of(time2));
      q1.toString() --> ?startkey=0&endkey=99999999

      q1.setRangeStart(ComplexKey.of(time1));
      q1.setRangeEnd(ComplexKey.of(time3));
      q1.toString()) --> ?startkey=0&endkey=%2299999999999%22

      It's throwing quotes around the long value.

      Attachments

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

        Activity

          People

            daschl Michael Nitschinger
            ctash_jt Chris Tashjian
            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