joao-r-reis commented on code in PR #1822:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1822#discussion_r1820764219
##########
conn.go:
##########
@@ -1347,7 +1527,8 @@ func (c *Conn) executeQuery(ctx context.Context, qry
*Query) *Iter {
params.pageSize = qry.pageSize
}
if c.version > protoVersion4 {
- params.keyspace = c.currentKeyspace
+ params.keyspace = qry.keyspace
Review Comment:
I just realized that we're still using `c.currentkeyspace` in the prepared
statement cache key, if the user provides a different keyspace then we have to
use that one. This is happening in `executeQuery`, `executeBatch`,
`prepareStatementForKeyspace`. These are the ones I managed to catch. Idk if it
is easy to write a test for this
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]