Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@trueqbit
Copy link
Collaborator

No description provided.

@trueqbit trueqbit requested a review from fnc12 June 22, 2024 17:14
@juandent
Copy link
Contributor

Why doesn't this code need c(" ") if it is needed at the end:

columns(alias_column<als>(&Employee::firstName) || " " || alias_column<als>(&Employee::lastName)

it is needed here:

 &Employee::firstName || c(" ") || &Employee::lastName),

@trueqbit
Copy link
Collaborator Author

Why doesn't this code need c(" ") if it is needed at the end:

columns(alias_column<als>(&Employee::firstName) || " " || alias_column<als>(&Employee::lastName)

it is needed here:

 &Employee::firstName || c(" ") || &Employee::lastName),

Because alias_column() returns alias_column_t<>, for which operator|| is overloaded.
Unfortunately we cannot overload C++ builtin types.

@trueqbit trueqbit merged commit 64342a0 into dev Jun 22, 2024
@trueqbit trueqbit deleted the correct-self-join-example branch June 22, 2024 21:04
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.

3 participants