Skip to content

fix: expression table-alias quoting, zero lint issues (#21)#22

Merged
kolkov merged 4 commits into
mainfrom
fix/expression-table-alias-quoting
Jun 19, 2026
Merged

fix: expression table-alias quoting, zero lint issues (#21)#22
kolkov merged 4 commits into
mainfrom
fix/expression-table-alias-quoting

Conversation

@kolkov

@kolkov kolkov commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix CompareExp.Build() doesn't split table-aliased column names #21: CompareExp.Build() and all other expression types now correctly split table-aliased column names ("table"."column" instead of "table.column")
  • Zero lint issues: extract repeated string literals into constants (28 goconst), replace deprecated reflect.Ptr with reflect.Pointer (21 govet)
  • Documentation: CHANGELOG v0.11.1, ROADMAP updated to current state with v0.12.0 vision

Affected expressions

All expression types that quote column names: Eq, NotEq, GreaterThan, LessThan, GreaterOrEqual, LessOrEqual, In, NotIn, Between, NotBetween, Like, NotLike, HashExp.

Test plan

  • 36 new test cases for table-aliased columns across all expression types and all 3 dialects
  • All 1600+ existing tests pass (no regressions)
  • golangci-lint run ./... = 0 issues
  • gofmt -l . = clean

kolkov added 4 commits June 19, 2026 19:19
CompareExp, InExp, LikeExp, BetweenExp, and HashExp all called
dialect.QuoteIdentifier() directly, wrapping "table.column" as a
single identifier instead of splitting into "table"."column".

Extract shared quoteColumn() helper and apply it to all expression
types. SelectQuery.quoteColumnName() now delegates to the same helper.

36 new test cases covering all expression types with table aliases
across PostgreSQL, MySQL, and SQLite dialects.
Extract repeated string literals into package-level constants (28 goconst).
Replace deprecated reflect.Ptr with reflect.Pointer (21 govet).

golangci-lint now reports 0 issues across the entire codebase.
@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

@kolkov kolkov merged commit 0bb1236 into main Jun 19, 2026
9 checks passed
@kolkov kolkov deleted the fix/expression-table-alias-quoting branch June 19, 2026 17:02
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.

CompareExp.Build() doesn't split table-aliased column names

1 participant