Skip to content
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

sql: do not re-create columnFormatCodes if there is a single column. #39310

Merged
merged 1 commit into from Aug 5, 2019
Merged

sql: do not re-create columnFormatCodes if there is a single column. #39310

merged 1 commit into from Aug 5, 2019

Conversation

elliotcourant
Copy link
Contributor

If there is only one column and there is only one format code, then
there is no need to rebuild the list. We would only need to rebuild the
list if there is more than 1 column and only a single format code was
provided by the client.

This was just something I had noticed a while after I had already
submitted #38870.

If there is only one column and there is only one format code, then
there is no need to rebuild the list. We would only need to rebuild the
list if there is more than 1 column and only a single format code was
provided by the client.
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@maddyblue
Copy link
Contributor

bors r+

@craig
Copy link
Contributor

craig bot commented Aug 5, 2019

Build failed

@maddyblue
Copy link
Contributor

bors r+

craig bot pushed a commit that referenced this pull request Aug 5, 2019
39310: sql: do not re-create columnFormatCodes if there is a single column. r=mjibson a=elliotcourant

If there is only one column and there is only one format code, then
there is no need to rebuild the list. We would only need to rebuild the
list if there is more than 1 column and only a single format code was
provided by the client.

This was just something I had noticed a while after I had already
submitted #38870.

Co-authored-by: Elliot Courant <me@elliotcourant.dev>
@craig
Copy link
Contributor

craig bot commented Aug 5, 2019

Build succeeded

@craig craig bot merged commit 141410c into cockroachdb:master Aug 5, 2019
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.

None yet

3 participants