Skip to content

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

Merged
madelynnblue merged 1 commit intocockroachdb:developfrom
madelynnblue:zone
Sep 1, 2016
Merged

cli: don't output SQL results during zone set#9007
madelynnblue merged 1 commit intocockroachdb:developfrom
madelynnblue:zone

Conversation

@madelynnblue
Copy link
Copy Markdown
Contributor

@madelynnblue madelynnblue 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
@nvb
Copy link
Copy Markdown
Contributor

nvb commented Aug 31, 2016

LGTM

err = runQueryAndFormatResults(conn, os.Stdout,
makeQuery(`INSERT INTO system.zones VALUES ($1, $2)`, id, buf), cliCtx.prettyFmt)
}
_, _, _, err = runQuery(conn, makeQuery(
Copy link
Copy Markdown
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
Copy Markdown
Contributor

tamird commented Aug 31, 2016

LGTM

@madelynnblue madelynnblue merged commit 18929ed into cockroachdb:develop Sep 1, 2016
@madelynnblue madelynnblue 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