You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
conn.query("SELECT id, message FROM ").execute(ctx.asyncAssertFailure(err -> {
113
113
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
114
114
DB2Exceptionex = (DB2Exception) err;
@@ -122,7 +122,7 @@ public void testQueryBlankTable(TestContext ctx) {
122
122
@Test
123
123
// This should cause sqlCode=-204 sqlState=42704 to be returned from the server
conn.query("SELECT id, message FROM TABLE_DOES_NOT_EXIST").execute(ctx.asyncAssertFailure(err -> {
127
127
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
128
128
DB2Exceptionex = (DB2Exception) err;
@@ -136,7 +136,7 @@ public void testInvalidTableQuery(TestContext ctx) {
136
136
@Test
137
137
// This should cause sqlCode=-206 sqlState=42703 to be returned from the server
conn.query("SELECT INVALID_COLUMN FROM immutable").execute(ctx.asyncAssertFailure(err -> {
141
141
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
142
142
DB2Exceptionex = (DB2Exception) err;
@@ -150,7 +150,7 @@ public void testInvalidColumnQuery(TestContext ctx) {
150
150
@Test
151
151
// This should cause sqlCode=-104 sqlState=42601 to be returned from the server
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
156
156
DB2Exceptionex = (DB2Exception) err;
@@ -167,7 +167,7 @@ public void testInvalidQuery(TestContext ctx) {
conn.query("INSERT INTO basicdatatype (id, test_int_2) VALUES (99,24,25)").execute(ctx.asyncAssertFailure(err -> {
172
172
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
173
173
DB2Exceptionex = (DB2Exception) err;
@@ -183,7 +183,7 @@ public void testMismatchingInsertedColumns(TestContext ctx) {
conn.query("INSERT INTO basicdatatype (id, test_int_2, test_int_2) VALUES (99,24,25)").execute(ctx.asyncAssertFailure(err -> {
188
188
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
189
189
DB2Exceptionex = (DB2Exception) err;
@@ -200,7 +200,7 @@ public void testRepeatedColumnReference(TestContext ctx) {
conn.query("INSERT INTO immutable (id, message) VALUES (1, 'a duplicate key')").execute(ctx.asyncAssertFailure(err -> {
225
225
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
226
226
DB2Exceptionex = (DB2Exception) err;
@@ -237,7 +237,7 @@ public void testDuplicateKeys(TestContext ctx) {
conn.query("CREATE TABLE fruits (id INTEGER PRIMARY KEY, name VARCHAR(50) NOT NULL)").execute(ctx.asyncAssertFailure(err -> {
242
242
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
243
243
DB2Exceptionex = (DB2Exception) err;
@@ -254,7 +254,7 @@ public void testCreateTableNullPrimaryKey(TestContext ctx) {
conn.query("INSERT INTO Fortune (id,message) VALUES (25, 'hello world')").execute(ctx.asyncAssertFailure(err -> {
259
259
ctx.assertTrue(errinstanceofDB2Exception, "The error message returned is of the wrong type. It should be a DB2Exception, but it was of type " + err.getClass().getSimpleName());
260
260
DB2Exceptionex = (DB2Exception) err;
@@ -266,7 +266,7 @@ public void testInsertIntoGeneratedAlwaysColumn(TestContext ctx) {
0 commit comments