Skip to content

[JDBC-V2] DatabaseMetadata: review and tests support flags. #2519

Closed

Description

@chernser

Description

There is a ton of small methods that used to determine Database capabilities like unions support etc.
This methods are crucial for tools that heavily rely on metadata.

This issue is about:

  • fixating returning value by checking in a test
  • reviewing and returning correct value.

Here is the list:

  • insertsAreDetected()

  • isCatalogAtStart()

  • isReadOnly()

  • locatorsUpdateCopy()

  • nullPlusNonNullIsNull()

  • nullsAreSortedAtEnd()

  • nullsAreSortedAtStart()

  • nullsAreSortedHigh()

  • nullsAreSortedLow()

  • othersDeletesAreVisible()

  • othersInsertsAreVisible()

  • othersUpdatesAreVisible()

  • ownDeletesAreVisible()

  • ownInsertsAreVisible()

  • ownUpdatesAreVisible()

  • storesLowerCaseIdentifiers()

  • storesLowerCaseQuotedIdentifiers()

  • storesMixedCaseIdentifiers()

  • storesMixedCaseQuotedIdentifiers()

  • storesUpperCaseIdentifiers()

  • storesUpperCaseQuotedIdentifiers()

  • supportsANSI92EntryLevelSQL()

  • supportsANSI92FullSQL()

  • supportsANSI92IntermediateSQL()

  • supportsAlterTableWithAddColumn()

  • supportsAlterTableWithDropColumn()

  • supportsBatchUpdates()

  • supportsCatalogsInDataManipulation()

  • supportsCatalogsInIndexDefinitions()

  • supportsCatalogsInPrivilegeDefinitions()

  • supportsCatalogsInProcedureCalls()

  • supportsCatalogsInTableDefinitions()

  • supportsColumnAliasing()

  • supportsConvert()

  • supportsConvert()

  • supportsCoreSQLGrammar()

  • supportsCorrelatedSubqueries()

  • supportsDataDefinitionAndDataManipulationTransactions()

  • supportsDataManipulationTransactionsOnly()

  • supportsDifferentTableCorrelationNames()

  • supportsExpressionsInOrderBy()

  • supportsExtendedSQLGrammar()

  • supportsFullOuterJoins()

  • supportsGetGeneratedKeys()

  • supportsGroupBy()

  • supportsGroupByBeyondSelect()

  • supportsGroupByUnrelated()

  • supportsIntegrityEnhancementFacility()

  • supportsLikeEscapeClause()

  • supportsLimitedOuterJoins()

  • supportsMinimumSQLGrammar()

  • supportsMixedCaseIdentifiers()

  • supportsMixedCaseQuotedIdentifiers()

  • supportsMultipleOpenResults()

  • supportsMultipleResultSets()

  • supportsMultipleTransactions()

  • supportsNamedParameters()

  • supportsNonNullableColumns()

  • supportsOpenCursorsAcrossCommit()

  • supportsOpenCursorsAcrossRollback()

  • supportsOpenStatementsAcrossCommit()

  • supportsOpenStatementsAcrossRollback()

  • supportsOrderByUnrelated()

  • supportsOuterJoins()

  • supportsPositionedDelete()

  • supportsPositionedUpdate()

  • supportsRefCursors()

  • supportsResultSetConcurrency()

  • supportsResultSetHoldability()

  • supportsResultSetType()

  • supportsSavepoints()

  • supportsSchemasInDataManipulation()

  • supportsSchemasInIndexDefinitions()

  • supportsSchemasInPrivilegeDefinitions()

  • supportsSchemasInProcedureCalls()

  • supportsSchemasInTableDefinitions()

  • supportsSelectForUpdate()

  • supportsSharding()

  • supportsStatementPooling()

  • supportsStoredFunctionsUsingCallSyntax()

  • supportsStoredProcedures()

  • supportsSubqueriesInComparisons()

  • supportsSubqueriesInExists()

  • supportsSubqueriesInIns()

  • supportsSubqueriesInQuantifieds()

  • supportsTableCorrelationNames()

  • supportsTransactionIsolationLevel()

  • supportsTransactions()

  • supportsUnion()

  • supportsUnionAll()

  • updatesAreDetected()

  • usesLocalFilePerTable()

  • usesLocalFiles()

  • allProceduresAreCallable()

  • allTablesAreSelectable()

  • autoCommitFailureClosesAllResultSets()

  • dataDefinitionCausesTransactionCommit()

  • dataDefinitionIgnoredInTransactions()

  • deletesAreDetected()

  • doesMaxRowSizeIncludeBlobs()

  • generatedKeyAlwaysReturned()

  • getResultSetHoldability()

  • getRowIdLifetime()

  • getSQLStateType()

  • getSearchStringEscape()

Activity

  1. added
    jdbc
    jdbc-metadata
    on Jul 31, 2025
  2. added this to the 0.9.3 milestone on Aug 20, 2025
  3. modified the milestones: 0.9.3, 0.9.4 on Oct 1, 2025
  4. added
    api-diagnostics
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-diagnosticsbugjdbcjdbc-metadata

    Type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions