Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
Description
Hi,
We get the following warnings when we use prepared statements with "create keyspace ... " or "drop keyspace" statements.
"
USE <keyspace> with prepared statements is considered to be an anti-pattern due to ambiguity in non-qualified table names. Please consider removing instances of Session#setKeyspace(<keyspace>), Session#execute("USE <keyspace>") and cluster.newSession(<keyspace>) from your code, and always use fully qualified table names (e.g. <keyspace>.<table>). Keyspace used: null, statement keyspace: null, statement id: 8153d922390fdf9a9963bfeda85b2f3b at
"
Such statements are already full-qualified. So, why are we getting this warning?
Regards
Mohammad
Attachments
Issue Links
- is duplicated by
-
CASSANDRA-18495 Warnings when using the perl driver to connect to Cassandra
- Resolved
- links to