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: allow CONNECTION LIMIT syntax for CREATE DATABASE #54219

Merged
merged 1 commit into from
Sep 15, 2020

Conversation

otan
Copy link
Contributor

@otan otan commented Sep 10, 2020

Resolves #54116.

Release note (sql change): Added the ability to parse the CONNECTION LIMIT [=] iconst32 syntax for CREATE DATABASE. This is currently a
no-op for -1 (default, unlimited connections), and errors for any
other value.

@otan otan requested review from solongordon and a team September 10, 2020 21:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@otan otan force-pushed the connection_limit branch 2 times, most recently from 1ab69bc to 928862e Compare September 10, 2020 22:53
@knz
Copy link
Contributor

knz commented Sep 11, 2020 via email

@otan
Copy link
Contributor Author

otan commented Sep 11, 2020

ah i misread the ticket. can make this error for != -1.

@otan otan force-pushed the connection_limit branch 2 times, most recently from 720e6df to 42be422 Compare September 11, 2020 05:50
Release note (sql change): Added the ability to parse the `CONNECTION
LIMIT [=] iconst32` syntax for `CREATE DATABASE`. This is currently a
no-op for -1 (default, unlimited connections), and errors for any
other value.
Copy link
Collaborator

@arulajmani arulajmani left a comment

Choose a reason for hiding this comment

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

Looks good

Reviewed 2 of 7 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @arulajmani and @solongordon)

@otan
Copy link
Contributor Author

otan commented Sep 15, 2020

bors r=arulajmani

@craig
Copy link
Contributor

craig bot commented Sep 15, 2020

Build succeeded:

@craig craig bot merged commit 2ae4b3a into cockroachdb:master Sep 15, 2020
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.

sql: make CONNECTION LIMIT = -1 a no-op
4 participants