docs: fix README/index differences, backport fixes · gzgithub/python-driver@6c14ee6 · GitHub
Skip to content

Commit 6c14ee6

Browse files
committed
docs: fix README/index differences, backport fixes
1 parent 4d90874 commit 6c14ee6

3 files changed

Lines changed: 23 additions & 10 deletions

File tree

README.rst

Lines changed: 6 additions & 7 deletions

cassandra/query.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,21 @@ class PreparedStatement(object):
366366
367367
A :class:`.PreparedStatement` should be prepared only once. Re-preparing a statement
368368
may affect performance (as the operation requires a network roundtrip).
369+
370+
|prepared_stmt_head|: Do not use ``*`` in prepared statements if you might
371+
change the schema of the table being queried. The driver and server each
372+
maintain a map between metadata for a schema and statements that were
373+
prepared against that schema. When a user changes a schema, e.g. by adding
374+
or removing a column, the server invalidates its mappings involving that
375+
schema. However, there is currently no way to propagate that invalidation
376+
to drivers. Thus, after a schema change, the driver will incorrectly
377+
interpret the results of ``SELECT *`` queries prepared before the schema
378+
change. This is currently being addressed in `CASSANDRA-10786
379+
<https://issues.apache.org/jira/browse/CASSANDRA-10786>`_.
380+
381+
.. |prepared_stmt_head| raw:: html
382+
383+
<b>A note about <code>*</code> in prepared statements</b>
369384
"""
370385

371386
column_metadata = None #TODO: make this bind_metadata in next major

docs/index.rst

Lines changed: 2 additions & 3 deletions

0 commit comments

Comments
 (0)