public class PreparedStatementTest extends JdbcTestBase
JdbcTestBase.ModelAndSchema, JdbcTestBase.TestDataConnectionDrillTest.MemWatcherwatcherc, dirTestWatcher, optionManagerlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
PreparedStatementTest() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setUpConnection() |
static void |
tearDownConnection() |
void |
testClientTriggeredQueryTimeout()
Test setting timeout for a query that actually times out
|
void |
testDefaultGetQueryTimeout()
Test for reading of default query timeout
|
void |
testExecuteQueryBasicCaseWorks()
Tests that basic executeQuery() (with query statement) works.
|
void |
testInvalidSetQueryTimeout()
Test Invalid parameter by giving negative timeout
|
void |
testNonTriggeredQueryTimeout()
Test setting timeout that never gets triggered
|
void |
testParamSettingWhenNoParametersIndexSaysUnsupported()
Tests that "not supported" has priority over possible "no parameters"
check.
|
void |
testParamSettingWhenUnsupportedTypeSaysUnsupported()
Tests that "not supported" has priority over possible "type not supported"
check.
|
void |
testQueryMetadataInPreparedStatement() |
void |
testServerTriggeredQueryTimeout()
Test setting timeout for a query that actually times out because of lack of timely server response
|
void |
testSetQueryTimeoutAsZero()
Test setting timeout as zero and executing
|
void |
testSqlQueryWithParamNotSupported()
Tests that basic case of trying to create a prepare statement with parameters.
|
void |
testValidSetQueryTimeout()
Test setting a valid timeout
|
changeSchema, changeSchemaIfSupplied, connect, connect, connect, getDefaultProperties, reset, setUpTestCase, tearDownTestCase, testJdbcTestConnectionResettingCompatibility, toString, toString, withFull, withModel, withNoDefaultSchemaclear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManagerescapeJsonString, finishDrillTest, initDrillTestpublic static void setUpConnection()
throws SQLException
SQLExceptionpublic static void tearDownConnection()
throws SQLException
SQLExceptionpublic void testExecuteQueryBasicCaseWorks()
throws SQLException
SQLExceptionpublic void testQueryMetadataInPreparedStatement()
throws SQLException
SQLExceptionpublic void testDefaultGetQueryTimeout()
throws SQLException
SQLExceptionpublic void testInvalidSetQueryTimeout()
throws SQLException
SQLExceptionpublic void testValidSetQueryTimeout()
throws SQLException
SQLExceptionpublic void testSetQueryTimeoutAsZero()
throws SQLException
SQLExceptionpublic void testClientTriggeredQueryTimeout()
throws Exception
Exceptionpublic void testServerTriggeredQueryTimeout()
throws Exception
Exceptionpublic void testNonTriggeredQueryTimeout()
throws SQLException
SQLExceptionpublic void testSqlQueryWithParamNotSupported()
throws SQLException
SQLExceptionpublic void testParamSettingWhenNoParametersIndexSaysUnsupported()
throws SQLException
SQLExceptionpublic void testParamSettingWhenUnsupportedTypeSaysUnsupported()
throws SQLException
SQLExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.