fix: Override types of aliased columns and named parameters - #1884
Merged
Conversation
haines
force-pushed
the
override-column-types
branch
from
October 14, 2022 08:58
09bf173 to
5a3e0c2
Compare
haines
force-pushed
the
override-column-types
branch
2 times, most recently
from
October 25, 2022 14:17
1d419ec to
32556c0
Compare
haines
force-pushed
the
override-column-types
branch
from
November 10, 2022 15:59
32556c0 to
d6cbd2c
Compare
haines
force-pushed
the
override-column-types
branch
from
November 30, 2022 13:19
d6cbd2c to
2ff3b63
Compare
6 tasks
haines
force-pushed
the
override-column-types
branch
from
February 2, 2023 12:26
2ff3b63 to
1004300
Compare
haines
force-pushed
the
override-column-types
branch
from
February 14, 2023 12:20
1004300 to
f3405f5
Compare
Contributor
|
@haines Thanks for keeping this fresh! @kyleconroy We are using this patch and it is working well for us! |
haines
force-pushed
the
override-column-types
branch
from
February 23, 2023 12:53
f3405f5 to
7b3861e
Compare
Contributor
Author
|
@kyleconroy could you please take a look? |
haines
force-pushed
the
override-column-types
branch
from
March 17, 2023 16:40
7b3861e to
0147036
Compare
haines
force-pushed
the
override-column-types
branch
from
April 12, 2023 17:33
0147036 to
effda1e
Compare
haines
force-pushed
the
override-column-types
branch
from
April 27, 2023 19:26
effda1e to
67293b7
Compare
Signed-off-by: Andrew Haines <andrew@haines.org.nz>
haines
force-pushed
the
override-column-types
branch
from
June 6, 2023 14:35
67293b7 to
fe18361
Compare
alfonsodev
pushed a commit
to ExponentiaTeam/sqlc
that referenced
this pull request
Oct 13, 2025
…#1884) Signed-off-by: Andrew Haines <andrew@haines.org.nz>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #606
Fixes #1752
Fixes #1864
Column type overriding fails when columns are aliased or parameter names do not match the underlying column.
This PR makes the compiler preserve the original column name if a column is aliased in a query or if a named parameter is used instead of a numbered one, and uses that name (if present) to check for a matching type override in the config.