Prepared statement caching issue in Cassandra Csharp driver

后端 未结 2 910
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-20 10:28

I believe I have found a bug with the logic of how a prepared statement is cached in the StatementFactory in the Cassandra csharp driver (version 2.7.3). Here is the use cas

2条回答
  •  盖世英雄少女心
    2021-01-20 11:13

    As a simple workaround, I am skipping the cache by using the DoNotPrepare

    await _mapper.DeleteAsync(Cql.New("WHERE id = ?", key).WithOptions(opt => opt.DoNotPrepare()));
    

    I also found an open issue with Datastax

提交回复
热议问题