Skip to content

CI: add integration tests with python 3.13 #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cassandra/cqlengine/management.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ def _get_index_name_by_column(table, column_name):
Find the index name for a given table and column.
"""
protected_name = metadata.protect_name(column_name)
possible_index_values = [protected_name, "values(%s)" % protected_name]
possible_index_values = [protected_name, "values(%s)" % protected_name, "keys(%s)" % protected_name]
for index_metadata in table.indexes.values():
options = dict(index_metadata.index_options)

if options.get('target') in possible_index_values:
return index_metadata.name

Expand Down