We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please answer these questions before submitting your issue. Thanks!
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);
}
Snapshot:434736612009312258 or Snapshot:
Snapshot:OFF
Release Version: v6.1.0
The text was updated successfully, but these errors were encountered:
planner/core: add tests for prepare show statements (#36458)
08f7bbe
close #36422
tangenta
Successfully merging a pull request may close this issue.
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
The text was updated successfully, but these errors were encountered: