Skip to content

sql: require placeholder types to be identical to use a cached plan#67651

Merged
craig[bot] merged 1 commit into
cockroachdb:masterfrom
rafiss:prepare-identical-placeholder
Jul 15, 2021
Merged

sql: require placeholder types to be identical to use a cached plan#67651
craig[bot] merged 1 commit into
cockroachdb:masterfrom
rafiss:prepare-identical-placeholder

Conversation

@rafiss

@rafiss rafiss commented Jul 15, 2021

Copy link
Copy Markdown
Collaborator

fixes #67605

Release note (bug fix): Fix a bug where a prepared statement could
incorrectly reuse the query plan of a different prepared statements that
had similar, but not identical type hints.

Release note (bug fix): Fix a bug where a prepared statement could
incorrectly reuse the query plan of a different prepared statements that
had similar, but not identical type hints.
@rafiss rafiss requested review from RaduBerinde and yuzefovich July 15, 2021 05:42
@cockroach-teamcity

Copy link
Copy Markdown
Member

This change is Reviewable

@yuzefovich yuzefovich left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM but I'll defer to @RaduBerinde for the approval.

Reviewed 3 of 3 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (waiting on @RaduBerinde)

@RaduBerinde RaduBerinde left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

:lgtm:

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

@rafiss

rafiss commented Jul 15, 2021

Copy link
Copy Markdown
Collaborator Author

tftr!

bors r=RaduBerinde

@craig

craig Bot commented Jul 15, 2021

Copy link
Copy Markdown
Contributor

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.

Mistakenly assumes Long value as INT4 on update

4 participants