-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only the last GroupBy()
call will be used
#74
Labels
Comments
Current API design enables us to update |
The |
SpencerC
added a commit
to datastax-ext/go-sqlbuilder
that referenced
this issue
Nov 30, 2022
* ignore unexported fields that are not embedded structs * fix huandu#74 [BREAKING CHANGE] Select#GroupBy and Select#OrderBy behavior change. Previous, GroupBy and OrderBy only keep the columns in the last call. Now, all columns are kept. * fix huandu#75 add Struct#Columns/ColumnsForTag and Struct#Values/ValuesForTag * remove a call to StructField.IsExported as it is not in go1.13 * refs huandu#78 add new `fieldas` tag to set AS name for SELECT * update docs * fix huandu#81 refactory struct field parser to make fieldas correct in all cases * Add Gitter badge * Fix insert ignore for postgres and sqlite. * fix test Co-authored-by: Michał Dobaczewski <[email protected]> Co-authored-by: Huan Du <[email protected]> Co-authored-by: The Gitter Badger <[email protected]> Co-authored-by: Zhong Ren <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When you call
GroupBy()
multiple times, only the last one will be in the SQL.Code:
Why not:
The text was updated successfully, but these errors were encountered: