Skip to content

BIND drops a big integer's declared XSD subtype #2058

Closed

Description

@bplatz

BIND gives a big integer (beyond 64 bits) xsd:integer whatever its declared subtype (xsd:nonNegativeInteger, xsd:unsignedLong, …), on a novelty-only ledger too, so a bound value is a different term from the stored one.

One visible effect, with #2008: a DELETE row whose value a BIND bound does not name a big integer stored under a subtype, so the delete stages nothing. #2008 notes the gap in it_delete_stored_facts::where_bound_rows_name_big_integers ("Not covered: BIND on a novelty-only ledger with a subtype").

Unlike #2027 (the index drops the subtype), this is the evaluator: the value bound by BIND carries no declared datatype.

Found while reviewing #2008.

Activity

  1. added
    bug
    P3
    area:query
    on Oct 11, 2026
  2. bplatz commented on Oct 12, 2026

    @bplatz
    ContributorAuthor

    #2090 lists this as its BIND item (a big integer bound by BIND gets xsd:integer whatever its declared subtype). A PR that fixes that item should close this one too.

  3. bplatz commented on Nov 21, 2026

    @bplatz
    ContributorAuthor

    Fixed on next by #2477 (merged 2026-11-21, 2e41210). BIND(?o AS ?v) binds ?o's term with its subtype kept, whether ?o was decoded or still encoded. it_numbig_declared_datatype::big_numbers_answer_alike_before_and_after_every_build covers it through a BIND-driven delete that removes only the matching subtype. Ships in 5.0. The PR's Fixes keyword didn't close this because its base was next.

  4. added this to the 5.0.0 milestone on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3area:querybug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions