Skip to content

fix(query): eliminate reflection nil dereference panic on complex joins (#1) - #10

Open
AKASH80047 wants to merge 1 commit into
HarrieAlexandrowicz5:mainfrom
AKASH80047:fix/complex-join-reflection-panic-1
Open

AKASH80047 wants to merge 1 commit into
HarrieAlexandrowicz5:mainfrom
AKASH80047:fix/complex-join-reflection-panic-1

Conversation

@AKASH80047

Copy link
Copy Markdown

Description

Fixes #1

Summary of Changes:

  • Explicit Non-Ambiguous Projections: Configured explicit column aliasing and structured DTO mapping (\UserOrderDetail) for multi-table queries involving self-joins and subqueries.
  • Reflection Panic Elimination: Resolves the root cause where ambiguous column joins resulted in zero-value reflect field dereferencing.
  • Comprehensive Unit & Load Tests (\joinfix/query_test.go): Verified projection correctness, multi-join integrity, and 10,000-iteration memory & execution stability.

/claim #1

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.

🎯 GORM v2.24.0 Panics When Querying with Complex Joins

1 participant