joao-r-reis commented on code in PR #1822:
URL:
https://github.com/apache/cassandra-gocql-driver/pull/1822#discussion_r1820766604
##########
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:
You can probably catch this bug if you use the same query string on 2
statements but one of them you call `SetKeyspace`, if I'm correct both
statements will internally use the same prepared statement and will go towards
the same keyspace (I didn't test this, I'm speculating purely from reading the
code).
--
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]