Skip to content

Commit 254dae0

Browse files
committed
Remove deprecated syntax
This uses the new style. We run this against a new enough MySQL version that this also works. Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com>
1 parent 8412fe8 commit 254dae0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/example/src/main/java/io/vitess/example/MysqlJDBCExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ private static void readData(Connection conn) throws SQLException {
109109
}
110110

111111
private static void validateReplica(Connection conn) throws SQLException {
112-
String sql = "show slave status";
112+
String sql = "show replica status";
113113
try (Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(sql)) {
114114
if (!rs.next()) {
115115
throw new RuntimeException("connected to wrong tablet");

0 commit comments

Comments
 (0)