You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+39-1Lines changed: 39 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
---
11
11
12
+
## [2.6.1] - 2025-01-27
13
+
14
+
### Added
15
+
-**Automatic external reference detection in subqueries**: QueryBuilder now automatically detects and converts external table references (`table.column`) to `RawValue` objects
16
+
- Works in `where()`, `select()`, `orderBy()`, `groupBy()`, `having()` methods
17
+
- Only converts references to tables not in current query's FROM clause
18
+
- Supports table aliases (e.g., `u.id` where `u` is an alias)
19
+
- Pattern detection: `table.column` or `alias.column`
20
+
- Invalid patterns (like `123.invalid`) are not converted
21
+
-**Db::ref() helper**: Manual external reference helper (though now mostly unnecessary due to automatic detection)
22
+
- Equivalent to `Db::raw('table.column')` but more semantic
23
+
- Still useful for complex expressions or when automatic detection doesn't work
24
+
-**Comprehensive test coverage** for external reference detection across all dialects:
25
+
- 13 new tests in each dialect-specific test file (MySQL, PostgreSQL, SQLite)
0 commit comments