-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If we see an "rte", write a response and wait for the next "newsql". Signed-off-by: Rivers Zhang <[email protected]>
- Loading branch information
1 parent
8c00a20
commit 7fa72c2
Showing
2 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
cdb2jdbc/src/test/java/com/bloomberg/comdb2/jdbc/BadRte.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.bloomberg.comdb2.jdbc; | ||
|
||
import org.junit.*; | ||
import org.junit.Assert.*; | ||
|
||
public class BadRte { | ||
@Test public void testBadRteClient() throws SQLException { | ||
String db = System.getProperty("cdb2jdbc.test.database"); | ||
String cluster = System.getProperty("cdb2jdbc.test.cluster"); | ||
Connection conn = DriverManager.getConnection(String.format("jdbc:comdb2://%s/%s?allow_pmux_route=1&portmuxport=19000", cluster, db)); | ||
Statement stmt = conn.createStatement(); | ||
stmt.executeQuery("SELECT 1"); | ||
stmt.close(); | ||
conn.close(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters