Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-7172

[RESP] HINCRBYFLOAT does not recognize number with spaces (not a number)

XMLWordPrintable

      While HINCRBY correctly detects that entries like " 11" and "11 " are not number HINCRBYFLOAT does not a will increase the number:

      Infinispan:

      127.0.0.1:11222> HSET key value " 11"
      (integer) 1
      127.0.0.1:11222> HINCRBYFLOAT key value 1
      "12"
      

      Redis:

      127.0.0.1:6379> HSET key value " 11"
      (integer) 1
      127.0.0.1:6379> HINCRBYFLOAT key value 1
      (error) ERR hash value is not a float
      

      Edit: Applies to INCRBYFLOAT as well

            rh-ee-jbolina Jose Bolina
            rhn-support-pdrobek Pavel Drobek
            Pavel Drobek Pavel Drobek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: