-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Prepared statements with bind variables in column specification are not supported #6287
Comments
Verified against current master (2036988). It is failing on the "Prepare Statement" request: failed response: Same request against the underlying MySQL works fine. Here is the full testcase program I used:
vttablet log error, which is suggestive that the rewriting for GenerateFieldQuery in vtgate is problematic when it makes it to vttablet:
|
Seems that the underlying issue is that Vitess just does not support any prepared statements with bind variables in the column specification of a query today. So, trying to prepare:
would fail in the same way. |
Any reason for it to work with vitess driver?
|
@aquarapid I think I got the issue 🤞. Please take a look and sorry in advance if this is completely wrong. ❤️ |
Fixed by #6298 |
Overview of the Issue
Prepared statements not working in the following circumstance. The issue doesn't happen with vitessdriver.
Reproduction Steps
Steps to reproduce this issue:
vschema
:Operating system and Environment details
Using vitess operator with Kubernetes version 1.15
MariaDB 10.3.22
Running with:
Log Fragments
The text was updated successfully, but these errors were encountered: