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

cli: don't output SQL results during zone set #9007

Merged
merged 1 commit into from
Sep 1, 2016
Merged

cli: don't output SQL results during zone set #9007

merged 1 commit into from
Sep 1, 2016

Conversation

maddyblue
Copy link
Contributor

@maddyblue maddyblue commented Aug 31, 2016

Also take the opportunity to use an UPSERT.

Fixes #8955


This change is Reviewable

Also take the opportunity to use an UPSERT.

Fixes #8955
@nvanbenschoten
Copy link
Member

LGTM

err = runQueryAndFormatResults(conn, os.Stdout,
makeQuery(`INSERT INTO system.zones VALUES ($1, $2)`, id, buf), cliCtx.prettyFmt)
}
_, _, _, err = runQuery(conn, makeQuery(
Copy link
Contributor

Choose a reason for hiding this comment

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

consider := while you're here

@tamird
Copy link
Contributor

tamird commented Aug 31, 2016

LGTM

@maddyblue maddyblue merged commit 18929ed into cockroachdb:develop Sep 1, 2016
@maddyblue maddyblue deleted the zone branch September 1, 2016 06:43
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