kaizen-solutions / virgil

A purely functional Cassandra client built on top of the Datastax Java Driver supporting a variety of effect systems like ZIO & Cats-Effect supporting both Scala 2 & 3
Mozilla Public License 2.0
37 stars 9 forks source link

Update CqlPrimitiveEncoder.scala #232

Closed serhiip closed 11 months ago

serhiip commented 11 months ago

Use the right constraint in encodePrimitiveByIndex. In case of TupleValue it implements SettableByIndex<TupleValue>. This changes the constraint in encodePrimitiveByIndex to use SettableByIndex instead of SettableByName

calvinlfer commented 11 months ago

Nice catch! Thank you for doing this @serhiip 😀