Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.3, 1.1.0-dp1
    • Fix Version/s: 1.0.4, 1.1.0-dp2
    • Component/s: None
    • Security Level: Public
    • Labels:
      None
    No reviews matched the request. Check your Options in the drop-down menu of this sections header.

      Activity

      Hide
      jan Jan Lehnardt (Inactive) added a comment -

      In the meantime, users can use:

      function couchbase_getResultMessage($code)
      {
      switch ($code)

      { case LIBCOUCHBASE_SUCCESS: return "Success"; case LIBCOUCHBASE_KEY_ENOENT: return "No such key"; case LIBCOUCHBASE_E2BIG: return "Object too big"; case LIBCOUCHBASE_ENOMEM: return "Out of memory"; case LIBCOUCHBASE_KEY_EEXISTS: return "Key exists (with a different CAS value)"; case LIBCOUCHBASE_EINVAL: return "Invalid arguments"; case LIBCOUCHBASE_NOT_STORED: return "Not stored"; case LIBCOUCHBASE_DELTA_BADVAL: return "Not a number"; case LIBCOUCHBASE_NOT_MY_VBUCKET: return "The vbucket is not located on this server"; case LIBCOUCHBASE_AUTH_ERROR: return "Authentication error"; case LIBCOUCHBASE_AUTH_CONTINUE: return "Continue authentication"; case LIBCOUCHBASE_ERANGE: return "Invalid range"; case LIBCOUCHBASE_UNKNOWN_COMMAND: return "Unknown command"; case LIBCOUCHBASE_NOT_SUPPORTED: return "Not supported"; case LIBCOUCHBASE_EINTERNAL: return "Internal error"; case LIBCOUCHBASE_EBUSY: return "Too busy. Try again later"; case LIBCOUCHBASE_ETMPFAIL: return "Temporary failure. Try again later"; case LIBCOUCHBASE_LIBEVENT_ERROR: return "Problem using libevent"; case LIBCOUCHBASE_NETWORK_ERROR: return "Network error"; case LIBCOUCHBASE_UNKNOWN_HOST: return "Unknown host"; case LIBCOUCHBASE_ERROR: return "Generic error"; case LIBCOUCHBASE_PROTOCOL_ERROR: return "Protocol error"; case LIBCOUCHBASE_ETIMEDOUT: return "Operation timed out"; case LIBCOUCHBASE_CONNECT_ERROR: return "Connection failure"; case LIBCOUCHBASE_BUCKET_ENOENT: return "No such bucket"; default: return "Unknown error.. are you sure libcouchbase gave you that?"; }

      }

      Show
      jan Jan Lehnardt (Inactive) added a comment - In the meantime, users can use: function couchbase_getResultMessage($code) { switch ($code) { case LIBCOUCHBASE_SUCCESS: return "Success"; case LIBCOUCHBASE_KEY_ENOENT: return "No such key"; case LIBCOUCHBASE_E2BIG: return "Object too big"; case LIBCOUCHBASE_ENOMEM: return "Out of memory"; case LIBCOUCHBASE_KEY_EEXISTS: return "Key exists (with a different CAS value)"; case LIBCOUCHBASE_EINVAL: return "Invalid arguments"; case LIBCOUCHBASE_NOT_STORED: return "Not stored"; case LIBCOUCHBASE_DELTA_BADVAL: return "Not a number"; case LIBCOUCHBASE_NOT_MY_VBUCKET: return "The vbucket is not located on this server"; case LIBCOUCHBASE_AUTH_ERROR: return "Authentication error"; case LIBCOUCHBASE_AUTH_CONTINUE: return "Continue authentication"; case LIBCOUCHBASE_ERANGE: return "Invalid range"; case LIBCOUCHBASE_UNKNOWN_COMMAND: return "Unknown command"; case LIBCOUCHBASE_NOT_SUPPORTED: return "Not supported"; case LIBCOUCHBASE_EINTERNAL: return "Internal error"; case LIBCOUCHBASE_EBUSY: return "Too busy. Try again later"; case LIBCOUCHBASE_ETMPFAIL: return "Temporary failure. Try again later"; case LIBCOUCHBASE_LIBEVENT_ERROR: return "Problem using libevent"; case LIBCOUCHBASE_NETWORK_ERROR: return "Network error"; case LIBCOUCHBASE_UNKNOWN_HOST: return "Unknown host"; case LIBCOUCHBASE_ERROR: return "Generic error"; case LIBCOUCHBASE_PROTOCOL_ERROR: return "Protocol error"; case LIBCOUCHBASE_ETIMEDOUT: return "Operation timed out"; case LIBCOUCHBASE_CONNECT_ERROR: return "Connection failure"; case LIBCOUCHBASE_BUCKET_ENOENT: return "No such bucket"; default: return "Unknown error.. are you sure libcouchbase gave you that?"; } }
      Hide
      jan Jan Lehnardt (Inactive) added a comment -
      Show
      jan Jan Lehnardt (Inactive) added a comment - A patch is in review at http://review.couchbase.org/#change,16182

        People

        • Assignee:
          jan Jan Lehnardt (Inactive)
          Reporter:
          jan Jan Lehnardt (Inactive)
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved:

            Gerrit Reviews

            There are no open Gerrit changes