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

Executing show variable in prepare mode returns an error result #36422

Closed
keeplearning20221 opened this issue Jul 21, 2022 · 0 comments · Fixed by #36458
Closed

Executing show variable in prepare mode returns an error result #36422

keeplearning20221 opened this issue Jul 21, 2022 · 0 comments · Fixed by #36458
Assignees
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@keeplearning20221
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

String sql_show = "show variables like 'tidb_snapshot';";
PreparedStatement pstmt_show = conn.prepareStatement(sql_show);
ResultSet res = pstmt_show.executeQuery();
if (res.next()) {
String id = res.getString("Value") ;
System.out.println("Snapshot:" + id);

                    }

2. What did you expect to see? (Required)

Snapshot:434736612009312258 or Snapshot:

3. What did you see instead (Required)

Snapshot:OFF

4. What is your TiDB version? (Required)

Release Version: v6.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants