forked from apache/cassandra-gocql-driver
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It wasn't caching the prepared statement by keyspace, so if you performed identical queries on two different keyspaces, it would use the prepared statement from the wrong keyspace (and end up querying against the wrong keyspace). I added a "currentKeyspace" field to the Conn struct so the statement caching code has it available to use as part of the cache key.
- Loading branch information
Muir Manders
committed
Aug 13, 2014
1 parent
b8692cd
commit 763d85a
Showing
2 changed files
with
102 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters