Skip to content

Conversation

MichaelPetrinolis
Copy link

Can select from the Index and supports All/Any

closes #479

@sebastienros
Copy link
Owner

Test failing on npgsql

@MichaelPetrinolis MichaelPetrinolis marked this pull request as draft November 24, 2024 19:37
Updated ISqlBuilder and SqlBuilder Join methods to include a new
onTableIsAlias parameter. Modified InnerJoin, LeftJoin, and RightJoin
extension methods to pass this parameter. Adjusted DefaultQuery
InnerJoin call to set onTableIsAlias to true for _documentTable.
Added a new test ShouldReturnFirstOrDefaultJoinedIndexes in CoreTests
and made minor formatting changes.
@sebastienros sebastienros marked this pull request as ready for review November 24, 2024 20:02
{
// Don't prefix if alias is used
if (alias != onTable)
if (alias != onTable && !onTableIsAlias)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing this, I believe we don't need a new field and just to set the alias argument instead such that it knows that onTable is an alias.

@hishamco
Copy link
Contributor

hishamco commented Apr 22, 2025

@MichaelPetrinolis could you please fix the build and react to Seb comment? I think there are several PRs stuck for a while

@MichaelPetrinolis
Copy link
Author

Hello @hishamco, I think that you wanted to mention me ;) I will try this week to fix the npgsql test failure.

@hishamco
Copy link
Contributor

Sorry I just messed up with another PR :)

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.

Select Index instead of document with All/Any support

3 participants