public class QueryAttributesTest extends BaseTestCase
BaseTestCase.MockConnectionConfigurationconn, dbClass, dbName, dbUrl, isOpenSSL, mainConnectionUrl, pstmt, rs, serverVersion, stmt, timeZoneFreeDbUrl| Constructor and Description |
|---|
QueryAttributesTest() |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
cachedServerPreparedStatementsWithQueryAttributes()
Tests if server prepared statements get their query attributes cleared automatically when cached.
|
void |
multiQueriesWithAttributesInPlainStatement()
Tests if query attributes hold in plain statements with multi-queries.
|
void |
multiQueriesWithAttributesInPreparedStatement()
Tests if query attributes hold in prepared statements with multi-queries.
|
(package private) void |
plainStatementWithQueryAttributesInMultiHost()
Tests whether proxied plain statement objects created in multi-host connections handle query attributes correctly.
|
void |
preserveAndClearAttributesInCallableStatement()
Tests if query attributes are preserved between callable statement executions and cleared after calling the 'clearAttributes' method.
|
void |
preserveAndClearAttributesInClientPreparedStatement()
Tests if query attributes are preserved between client prepared statement executions and cleared after calling the 'clearAttributes' method.
|
void |
preserveAndClearAttributesInPlainStatement()
Tests if query attributes are preserved between plain statement executions and cleared after calling the 'clearAttributes' method.
|
void |
preserveAndClearAttributesInServerPreparedStatement()
Tests if query attributes are preserved between server prepared statement executions and cleared after calling the 'clearAttributes' method.
|
void |
queryAttributesTypesInCallableStatement()
Tests all supported query attributes types when used in callable statements.
|
void |
queryAttributesTypesInClientPreparedStatement()
Tests all supported query attributes types when used in client prepared statements.
|
void |
queryAttributesTypesInPlainStatement()
Tests all supported query attributes types when used in plain statements.
|
void |
queryAttributesTypesInServerPreparedStatement()
Tests all supported query attributes types when used in server prepared statements.
|
(package private) void |
rewriteQueriesWithAttributesInClientPreparedStatement()
Tests whether the query attributes are propagated to the internally created statement on query rewrites in client prepared statements.
|
(package private) void |
rewriteQueriesWithAttributesInPlainStatement()
Tests whether the query attributes are propagated to the internally created statement on query rewrites in plain statements.
|
(package private) void |
rewriteQueriesWithAttributesInServerPreparedStatement()
Tests whether the query attributes are propagated to the internally created statement on query rewrites in server prepared statements.
|
(package private) void |
serverPreparedStatementWithQueryAttributesInMultiHost()
Tests whether proxied server prepared statement objects created in multi-host connections handle query attributes correctly.
|
void |
setUp() |
void |
teardown() |
appendRequiredProperties, assertByteArrayEquals, assertConnectionsHistory, assertEqualsFSAware, assertNonSecureConnection, assertResultSetLength, assertResultSetsEqual, assertSecureConnection, assertSecureConnection, assertSessionStatusEquals, assertThrows, assertThrows, assertThrows, assertThrows, cleanupTempFiles, createDatabase, createDatabase, createFunction, createFunction, createProcedure, createProcedure, createSchemaObject, createSchemaObject, createTable, createTable, createTable, createTable, createUser, createUser, createView, createView, currentTimeMillis, dropDatabase, dropDatabase, dropFunction, dropFunction, dropProcedure, dropProcedure, dropSchemaObject, dropSchemaObject, dropTable, dropTable, dropUser, dropUser, dropView, dropView, fillPrimitiveDefaults, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getConnectionWithProps, getEncodedHostFromTestsuiteUrl, getEncodedHostPortPairFromTestsuiteUrl, getFailoverConnection, getFailoverConnection, getHostFreePropertiesFromTestsuiteUrl, getHostFreePropertiesFromTestsuiteUrl, getHostFromTestsuiteUrl, getInstanceNumber, getLoadBalancedConnection, getLoadBalancedConnection, getLoadBalancedConnection, getMysqlVariable, getMysqlVariable, getNewConnection, getNoDbUrl, getPort, getPortFreeHostname, getPortFromTestsuiteUrl, getPropertiesFromTestsuiteUrl, getPropertiesFromUrl, getRowCount, getSingleIndexedValueWithQuery, getSingleIndexedValueWithQuery, getSingleValue, getSingleValueWithQuery, getSourceReplicaReplicationConnection, getSourceReplicaReplicationConnection, getSourceReplicaUrl, getSourceReplicaUrl, getUnreliableFailoverConnection, getUnreliableFailoverConnection, getUnreliableLoadBalancedConnection, getUnreliableLoadBalancedConnection, getUnreliableMultiHostConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, getUnreliableReplicationConnection, isClassAvailable, isCommunityEdition, isEnterpriseEdition, isMysqlRunningLocally, isRunningOnJRockit, isServerRunningOnWindows, isSysPropDefined, logDebug, newTempBinaryFile, randomString, removeHostRelatedProps, removeSqlMode, runLongTests, setUpBase, supportsLoadLocalInfile, supportsTestCachingSha2PasswordKeys, supportsTestCertificates, supportsTestSha256PasswordKeys, supportsTimeZoneNames, supportsTLSv1_2, tearDownBase, versionMeetsMinimum, versionMeetsMinimum@BeforeEach
public void setUp()
throws java.lang.Exception
java.lang.Exception@AfterEach
public void teardown()
throws java.lang.Exception
java.lang.Exception@Test
public void queryAttributesTypesInPlainStatement()
throws java.lang.Exception
java.lang.Exception@Test
public void queryAttributesTypesInClientPreparedStatement()
throws java.lang.Exception
java.lang.Exception@Test
public void queryAttributesTypesInServerPreparedStatement()
throws java.lang.Exception
java.lang.Exception@Test
public void queryAttributesTypesInCallableStatement()
throws java.lang.Exception
java.lang.Exception@Test
public void preserveAndClearAttributesInPlainStatement()
throws java.lang.Exception
java.lang.Exception@Test
public void preserveAndClearAttributesInClientPreparedStatement()
throws java.lang.Exception
java.lang.Exception@Test
public void preserveAndClearAttributesInServerPreparedStatement()
throws java.lang.Exception
java.lang.Exception@Test
public void preserveAndClearAttributesInCallableStatement()
throws java.lang.Exception
java.lang.Exception@Test
public void multiQueriesWithAttributesInPlainStatement()
throws java.lang.Exception
java.lang.Exception@Test
public void multiQueriesWithAttributesInPreparedStatement()
throws java.lang.Exception
java.lang.Exception@Test
void rewriteQueriesWithAttributesInPlainStatement()
throws java.lang.Exception
java.lang.Exception@Test
void rewriteQueriesWithAttributesInClientPreparedStatement()
throws java.lang.Exception
java.lang.Exception@Test
void rewriteQueriesWithAttributesInServerPreparedStatement()
throws java.lang.Exception
java.lang.Exception@Test
void cachedServerPreparedStatementsWithQueryAttributes()
throws java.lang.Exception
java.lang.Exception@Test
void plainStatementWithQueryAttributesInMultiHost()
throws java.lang.Exception
java.lang.Exception@Test
void serverPreparedStatementWithQueryAttributesInMultiHost()
throws java.lang.Exception
java.lang.Exception