A robot asset directory may use case-insensitive name searches so an operator can type TOOL-a and find a label stored as tool-A. That behavior can work for the demonstrated ASCII name while giving a different result for names containing other letters. SQLite's built-in NOCASE collation has a specific folding scope, rather than a promise to treat every Unicode case pair as equal.
An original in-memory fixture makes that scope visible through equality comparisons and directory lookups. Python 3.14.7 used SQLite 3.50.4, without registering a replacement collation or loading an ICU extension. All names are invented strings, with no connection to an actual asset directory, robot, or customer record.
State the comparison contract
SQLite's datatype reference describes built-in NOCASE as folding the 26 uppercase ASCII characters to their lowercase counterparts before comparison. It explicitly distinguishes that behavior from full Unicode case folding. The same reference separates this collation from BINARY, which does not apply that ASCII folding.
For a directory contract, the useful question is therefore more precise than whether searches ignore case. Which characters are folded, which comparison expression uses the rule, and which original text remains stored? A passing mixed-case ASCII example answers only part of that question.
Start with three explicit pairs
The fixture compares tool-A with TOOL-a using SELECT parameters and an explicit COLLATE NOCASE. It returns integer 1, indicating equality for this expression. Repeating the comparison with COLLATE BINARY returns 0. These results show the chosen rule changing an equality decision for these exact strings.
The second pair is the single character Ä, code point U+00C4, and the single character ä, code point U+00E4. Their NOCASE equality result is 0. Both strings consist of one character in this example; the distinction does not depend on a hidden extra space, a missing field, or a longer record.
The third pair is Straße and STRASSE. Built-in NOCASE again returns 0 on the tested runtime. This is a concrete negative result for these two stored strings, not a proposal to equate them under every possible directory policy. The fixture does not substitute another language library's folding rule for the database's observed comparison.
Carry the rule into a small directory table
The fictional labels table has an integer primary key and a required text column named name, declared with COLLATE NOCASE. It contains five rows: 1/tool-A, 2/Ä, 3/ä, 4/Straße, and 5/STRASSE. No uniqueness constraint is placed on name; separate row identifiers let the fixture inspect which stored strings each query selects.
The lookup query compares the name column with one bound text parameter and orders the output by id. With probe TOOL-a, it selects row 1 and returns its stored name tool-A. This is the intended ASCII convenience in the proposed example, shown through a real query rather than inferred from the collation's label.
With probe ä, the query selects only row 3. With probe Ä, it selects only row 2. These two observations preserve the distinction between the exact strings under this configured comparison. A screen that displays both with similar styling should not turn one result into evidence that the query matched both records.
With probe strasse, the query selects row 5/STRASSE and does not select row 4/Straße. The ASCII letters in the probe and row 5 can compare equally under the configured rule, while the different representation in row 4 remains outside that match. The receipt retains both the probe and returned identities so the outcome is reviewable.
Make expression overrides explicit
SQLite's expression reference describes COLLATE as a postfix operator assigning a collation to an expression and overriding a column's declared collation. The fixture therefore repeats each table lookup with an explicit COLLATE BINARY on the probe expression, keeping the table and input values unchanged.
The explicit-BINARY query finds no row for TOOL-a and no row for strasse. For probes ä and Ä, it still selects their exact corresponding rows. This comparison isolates the expression-level rule; it does not require changing the schema, rewriting stored names, or claiming that every operation on the column shares one behavior automatically.
Keep matching separate from text transformation
After all comparisons and lookups, the fixture reads the five stored rows again. Their names remain exactly tool-A, Ä, ä, Straße, and STRASSE. The comparison did not lowercase the stored strings or replace them with a normalized display form. The first query could return tool-A even when its input probe used TOOL-a.
That distinction matters for a proposed receipt or export. Preserve the original name alongside the query's matching rule and stable record id. Reporting only a transformed search key would obscure what was supplied, what was stored, and what the database actually selected.
Choose a policy before broadening matches
If an asset directory requires matching beyond the demonstrated ASCII scope, treat that as a separate, explicit application requirement. Define representative accepted and rejected pairs with the directory's owners, along with how an ambiguous result should be presented. This article does not prescribe a universal name-equivalence policy.
A changed comparison rule could merge results that the existing rule kept separate. Before changing a real directory, the proposed review would replay its own representative strings and reconcile affected identities. Registering a custom collation or adopting an extension requires separate implementation and validation; neither was performed in this isolated test.
Retain a compact evidence set
The saved fixture records the runtime versions, table declaration, five original rows, both strings and code points for each scalar pair, NOCASE and BINARY results, lookup probes, returned row identities, and unchanged final text. It tests equality through bound text parameters, without claiming LIKE behavior, locale-aware ordering, or a production migration.
The practical lesson is to name the matching boundary accurately. Built-in NOCASE supports the tested ASCII case-insensitive lookup, while the non-ASCII examples remain distinct. A directory can communicate that behavior clearly when its receipt states the actual collation and returned identities instead of treating case-insensitive as an unlimited language guarantee.
Sources checked November 18, 2026:
SQLite, Datatypes In SQLite, collating sequences:
https://www.sqlite.org/datatype3.html
SQLite, SQL Language Expressions, COLLATE operator:
https://www.sqlite.org/lang_expr.html
The names, queries, executed fixture, directory proposal, and receipt design are original T-800 editorial work. No real asset lookup, hardware action, custom collation, or database migration was performed.
Illustration: an AI-generated concept contrasts one ASCII match with one non-ASCII pair that built-in NOCASE does not fold. It is not a screenshot of a real directory.