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

Add Support for Prepared Statements #5018

Merged
merged 43 commits into from
Aug 9, 2019

Conversation

saifalharthi
Copy link
Contributor

@saifalharthi saifalharthi commented Jul 24, 2019

This is a continuation for #3862.

Added unit tests and end to end tests to ensure that Prepared statements is working properly.

cc: @dcadevil @Johnny-Three

dcadevil and others added 28 commits January 15, 2019 18:49
Signed-off-by: dcadevil <dcadevil@126.com>
Signed-off-by: dcadevil <dcadevil@126.com>
Signed-off-by: dcadevil <dcadevil@126.com>
Signed-off-by: dcadevil <dcadevil@126.com>
Signed-off-by: dcadevil <dcadevil@126.com>
Signed-off-by: dcadevil <dcadevil@126.com>
Signed-off-by: dcadevil <dcadevil@126.com>
…s-prepare

Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: deepthi <deepthi@planetscale.com>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
…tiglabs-prepare

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
@derekperkins
Copy link
Member

We could definitely use support for prepared statements

Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

Excellent piece of work! I only have a few nit-picks.

go/mysql/conn.go Show resolved Hide resolved
go/mysql/conn.go Outdated Show resolved Hide resolved
go/mysql/query.go Outdated Show resolved Hide resolved
go/mysql/conn.go Show resolved Hide resolved
go/mysql/conn.go Outdated Show resolved Hide resolved
go/mysql/conn.go Outdated Show resolved Hide resolved
go/vt/vtgate/executor.go Outdated Show resolved Hide resolved
go/vt/vtgate/executor.go Outdated Show resolved Hide resolved
go/vt/vtgate/executor.go Outdated Show resolved Hide resolved
go/vt/vtgate/vtgate.go Outdated Show resolved Hide resolved
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
test/prepared_statement_test.py Outdated Show resolved Hide resolved
test/prepared_statement_test.py Outdated Show resolved Hide resolved
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

Couple more comments.

go/mysql/conn.go Outdated Show resolved Hide resolved
go/vt/vtgate/executor.go Outdated Show resolved Hide resolved
go/mysql/conn.go Outdated Show resolved Hide resolved
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

I was about to approve, but found a potential bug. Can you write a test for it?
Make sure it fails, and then make sure the fix fixes the problem.

go/mysql/conn.go Outdated Show resolved Hide resolved
go/mysql/conn.go Outdated Show resolved Hide resolved
go/mysql/conn.go Show resolved Hide resolved
go/mysql/conn.go Outdated Show resolved Hide resolved
Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
…not get affacted

Signed-off-by: Saif Alharthi <saif@saifalharthi.me>
Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

Finally!

@sougou sougou merged commit 95f1642 into vitessio:master Aug 9, 2019
@deepthi deepthi deleted the tiglabs-prepare branch July 6, 2020 19:02
systay pushed a commit that referenced this pull request Jul 22, 2024
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.

5 participants