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: prevent crash during logging with empty statement #37104

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

jordanlewis
Copy link
Member

Previously, the database would crash if a client sent an empty prepare
statement when we had high verbosity on for the conn_executor.

Release note: None

Previously, the database would crash if a client sent an empty prepare
statement when we had high verbosity on for the conn_executor.

Release note: None
@jordanlewis jordanlewis requested review from andreimatei and a team April 24, 2019 23:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Contributor

@andreimatei andreimatei left a comment

Choose a reason for hiding this comment

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

LGTM but pls add a test :)

Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @andreimatei)

@jordanlewis
Copy link
Member Author

I can't figure out a way to test this reasonably... just going to merge in the name of fixing this bug, sorry!

bors r+

craig bot pushed a commit that referenced this pull request Apr 26, 2019
37104: sql: prevent crash during logging with empty statement r=jordanlewis a=jordanlewis

Previously, the database would crash if a client sent an empty prepare
statement when we had high verbosity on for the conn_executor.

Release note: None

Co-authored-by: Jordan Lewis <[email protected]>
@craig
Copy link
Contributor

craig bot commented Apr 26, 2019

Build succeeded

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