public class MetadataTest extends BaseTableTestCase
dbCharset, dbCollation, schema, sessionbaseUrl, DEFAULT_METADATA_CHARSET, fact, isSetForXTests, testHostInfo, testProperties| Constructor and Description |
|---|
MetadataTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
derivedCol() |
void |
docAsTableIsJSON() |
void |
example_metadata() |
void |
exhaustTypes()
Some metadata fields have no sense with concrete SQL data type.
|
void |
renameCol() |
void |
setupTableTest() |
void |
teardownTableTest() |
void |
testGetColumnInfoFromnSession() |
void |
testGetColumnLabel() |
void |
testGetColumnName() |
void |
testGetColumnNameAndgetColumnLabel() |
void |
testGetFractionalDigits() |
void |
testGetLength() |
void |
testGetSchemaName() |
void |
testGetTableLabel() |
void |
testGetTableName() |
void |
testGetType() |
void |
testIsNumberSigned() |
void |
testIsPaddedAndisNullableAndisAutoIncrement() |
void |
testIsPrimaryKeyAndisUniqueKeyAndisPartKey() |
void |
testMultiSelects() |
void |
testMultiSelectsAsync() |
void |
testWithUnsignedData() |
setupBaseTableTest, teardownBaseTableTestassertNonSecureSession, assertPreparedStatementsCount, assertPreparedStatementsCountsAndId, assertPreparedStatementsStatusCounts, assertSecureSession, assertSecureSession, buildString, count_data, destroyTestSession, dropCollection, getPreparedStatementExecutionsCount, getPreparedStatementId, getPreparedStatementsCount, getPreparedStatementsCount, getPreparedStatementsCount, getPrepDeallocateCount, getPrepExecuteCount, getPrepPrepareCount, getThreadId, isMysqlRunningLocally, isServerRunningOnWindows, makeParam, makeParam, makeParam, setupTestSession, sqlUpdate, supportsTestCertificates, supportsTLSv1_2assertSessionStatusEquals, assertSessionStatusNotEquals, assertThrows, assertThrows, assertThrows, assertThrows, createAuthenticatedTestProtocol, createTempTestCollection, createTestProtocol, createTestSchema, createTestSession, dropTempTestCollection, getEncodedTestHost, getTestDatabase, getTestHost, getTestPassword, getTestPort, getTestUser, mysqlVersionMeetsMinimum, mysqlVersionMeetsMinimum@BeforeEach public void setupTableTest()
@AfterEach public void teardownTableTest()
@Test public void example_metadata()
@Test public void renameCol()
@Test public void derivedCol()
@Test public void docAsTableIsJSON()
@Test public void exhaustTypes()
MysqlxResultset.ColumnMetaData
describes which fields are relevant to each type:
================= ============ ======= ========== ====== ========
SQL Type .type .length .frac_dig .flags .charset
================= ============ ======= ========== ====== ========
TINY SINT x
TINY UNSIGNED UINT x x
SHORT SINT x
SHORT UNSIGNED UINT x x
INT24 SINT x
INT24 UNSIGNED UINT x x
INT SINT x
INT UNSIGNED UINT x x
LONGLONG SINT x
LONGLONG UNSIGNED UINT x x
DOUBLE DOUBLE x x x
FLOAT FLOAT x x x
DECIMAL DECIMAL x x x
VARCHAR,CHAR,... BYTES x x x
GEOMETRY BYTES
TIME TIME x
DATE DATETIME x
DATETIME DATETIME x
YEAR UINT x x
TIMESTAMP DATETIME x
SET SET x
ENUM ENUM x
NULL BYTES
BIT BIT x
================= ============ ======= ========== ====== ========
@Test
public void testGetColumnInfoFromnSession()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetSchemaName()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetTableName()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetTableLabel()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetColumnName()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetColumnLabel()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetType()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetFractionalDigits()
throws java.lang.Exception
java.lang.Exception@Test
public void testIsNumberSigned()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetLength()
throws java.lang.Exception
java.lang.Exception@Test
public void testIsPrimaryKeyAndisUniqueKeyAndisPartKey()
throws java.lang.Exception
java.lang.Exception@Test
public void testGetColumnNameAndgetColumnLabel()
throws java.lang.Exception
java.lang.Exception@Test
public void testMultiSelects()
throws java.lang.Exception
java.lang.Exception@Test
public void testMultiSelectsAsync()
throws java.lang.Exception
java.lang.Exception@Test
public void testIsPaddedAndisNullableAndisAutoIncrement()
throws java.lang.Exception
java.lang.Exception@Test
public void testWithUnsignedData()
throws java.lang.Exception
java.lang.Exception