[CSHARP-2739] The anonymous type-based projection produces invalid projection when hierarchial fields have common prefix Created: 10/Sep/19 Updated: 28/Oct/23 Resolved: 26/Sep/19 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | Linq |
| Affects Version/s: | 2.9.1 |
| Fix Version/s: | 2.9.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Aristarkh Zagorodnikov | Assignee: | Dmitry Lukyanov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Description |
|
Consider the following test:
With released 2.9.1 this test fails, because the FindProjectionTranslator.GetUniqueFieldsByHierarchy does not use periods to determine the common prefix. |
| Comments |
| Comment by Githook User [ 27/Sep/19 ] |
|
Author: {'username': 'onyxmaster', 'email': 'xm@drive.net', 'name': 'Aristarkh Zagorodnikov'}Message: |
| Comment by Githook User [ 26/Sep/19 ] |
|
Author: {'name': 'Aristarkh Zagorodnikov', 'username': 'onyxmaster', 'email': 'xm@drive.net'}Message: |
| Comment by Aristarkh Zagorodnikov [ 10/Sep/19 ] |