Skip to content

fix(storage): class definition placeholder rows not filled (or detected) correctly#3297

Open
t00ts wants to merge 5 commits intomainfrom
t00ts/class-definition-bug
Open

fix(storage): class definition placeholder rows not filled (or detected) correctly#3297
t00ts wants to merge 5 commits intomainfrom
t00ts/class-definition-bug

Conversation

@t00ts
Copy link
Contributor

@t00ts t00ts commented Mar 24, 2026

Three related bugs in class_definitions handling:

  • class_definitions_exist returned true for placeholder rows (rows with definition IS NULL), causing definitions to never be re-fetched for classes whose placeholder was created before the definition arrived.
  • insert_cairo_class_definition and insert_sierra_class_definition used INSERT OR IGNORE, which silently dropped writes when a placeholder row already existed for the hash. Replaced with an upsert that fills a NULL definition without overwriting an existing one.

All three functions now correctly treat a row with definition IS NULL as absent.

See also #3287

@t00ts t00ts marked this pull request as ready for review March 24, 2026 15:17
@t00ts t00ts requested a review from a team as a code owner March 24, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants