Skip to content

[#600] prevent case-sensitive testing with BETWEEN where infeasible#818

Open
d-w-moore wants to merge 1 commit intoirods:mainfrom
d-w-moore:600.m
Open

[#600] prevent case-sensitive testing with BETWEEN where infeasible#818
d-w-moore wants to merge 1 commit intoirods:mainfrom
d-w-moore:600.m

Conversation

@d-w-moore
Copy link
Copy Markdown
Collaborator

@d-w-moore d-w-moore commented Apr 27, 2026

Tests using the BETWEEN operator are now skipped if they are predicated on being case sensitive and if the installed object catalog ignores alphabetic case for query conditions dependent on lexical order (as tested by BETWEEN, >, >=, <, and <=.)

Comment thread irods/test/query_test.py
def setUpClass(cls):
with helpers.make_session() as sess:
if cls._csq is None:
cls._csq = cls._query_columns_case_sensitive_by_default(sess)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does case_sensitive_testing_feasible use a tuple to check cls._csq on line 64?

_query_columns_case_sensitive_by_default returns a boolean which removes the need for a tuple. Am I misunderstanding?

@korydraughn
Copy link
Copy Markdown
Contributor

It just occurred to me. Why does the PRC have tests which care about the database in use at all? Tests which care about that sort of thing should be part of the server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants