redis-rb / redis-client

Simple low level client for Redis 6+
MIT License
124 stars 60 forks source link

Command Builder does not handle Big Decimal. #109

Closed hewrin closed 1 year ago

hewrin commented 1 year ago

When passing in a BigDecimal to the command,I get a TypeError "Unsupported command argument type: BigDecimal" error.

Not sure if its a big deal as I can cast it to a float or an int before passing it in, but I have attempted a fix in #108

Thanks!

casperisfine commented 1 year ago

Thanks for the PR, but this is by design: https://github.com/redis-rb/redis-client#type-support

redis-client tries to only accept types that are supported by the protocol.

hewrin commented 1 year ago

I see, I missed that part. Sorry!