Package java.sql

Examples of java.sql.DatabaseMetaData.supportsCatalogsInTableDefinitions()


      System.out.println("supportsCatalogsInDataManipulation(): " +
                 met.supportsCatalogsInDataManipulation());
      System.out.println("supportsCatalogsInProcedureCalls(): " +
                 met.supportsCatalogsInProcedureCalls());
      System.out.println("supportsCatalogsInTableDefinitions(): " +
                 met.supportsCatalogsInTableDefinitions());
      System.out.println("supportsCatalogsInIndexDefinitions(): " +
                 met.supportsCatalogsInIndexDefinitions());
      System.out.println("supportsCatalogsInPrivilegeDefinitions(): " +
                 met.supportsCatalogsInPrivilegeDefinitions());
      System.out.println("supportsPositionedDelete(): " +
View Full Code Here


    assertEquals("Hive", meta.getDatabaseProductName());
    assertEquals("1", meta.getDatabaseProductVersion());
    assertEquals(DatabaseMetaData.sqlStateSQL99, meta.getSQLStateType());
    assertNull(meta.getProcedures(null, null, null));
    assertFalse(meta.supportsCatalogsInTableDefinitions());
    assertFalse(meta.supportsSchemasInTableDefinitions());
    assertFalse(meta.supportsSchemasInDataManipulation());
    assertFalse(meta.supportsMultipleResultSets());
    assertFalse(meta.supportsStoredProcedures());
    assertTrue(meta.supportsAlterTableWithAddColumn());
View Full Code Here

      System.out.println("supportsCatalogsInDataManipulation(): " +
                 met.supportsCatalogsInDataManipulation());
      System.out.println("supportsCatalogsInProcedureCalls(): " +
                 met.supportsCatalogsInProcedureCalls());
      System.out.println("supportsCatalogsInTableDefinitions(): " +
                 met.supportsCatalogsInTableDefinitions());
      System.out.println("supportsCatalogsInIndexDefinitions(): " +
                 met.supportsCatalogsInIndexDefinitions());
      System.out.println("supportsCatalogsInPrivilegeDefinitions(): " +
                 met.supportsCatalogsInPrivilegeDefinitions());
      System.out.println("supportsPositionedDelete(): " +
View Full Code Here

       
        assertFalse(dmd.supportsCatalogsInDataManipulation());
        assertFalse(dmd.supportsCatalogsInIndexDefinitions());
        assertFalse(dmd.supportsCatalogsInPrivilegeDefinitions());
        assertFalse(dmd.supportsCatalogsInProcedureCalls());
        assertFalse(dmd.supportsCatalogsInTableDefinitions());
       
        assertTrue(dmd.supportsColumnAliasing());
       
        // Bug DERBY-462 should return false.
        assertTrue(dmd.supportsConvert());
View Full Code Here

    assertEquals(System.getProperty("hive.version"), meta.getDatabaseProductVersion());
    assertTrue("verifying hive version pattern. got " + meta.getDatabaseProductVersion(),
        Pattern.matches("\\d+\\.\\d+\\.\\d+.*", meta.getDatabaseProductVersion()) );

    assertEquals(DatabaseMetaData.sqlStateSQL99, meta.getSQLStateType());
    assertFalse(meta.supportsCatalogsInTableDefinitions());
    assertFalse(meta.supportsSchemasInTableDefinitions());
    assertFalse(meta.supportsSchemasInDataManipulation());
    assertFalse(meta.supportsMultipleResultSets());
    assertFalse(meta.supportsStoredProcedures());
    assertTrue(meta.supportsAlterTableWithAddColumn());
View Full Code Here

    assertEquals("Hive", meta.getDatabaseProductName());
    assertEquals("1", meta.getDatabaseProductVersion());
    assertEquals(DatabaseMetaData.sqlStateSQL99, meta.getSQLStateType());
    assertNull(meta.getProcedures(null, null, null));
    assertFalse(meta.supportsCatalogsInTableDefinitions());
    assertFalse(meta.supportsSchemasInTableDefinitions());
    assertFalse(meta.supportsSchemasInDataManipulation());
    assertFalse(meta.supportsMultipleResultSets());
    assertFalse(meta.supportsStoredProcedures());
    assertTrue(meta.supportsAlterTableWithAddColumn());
View Full Code Here

        String tablePattern = escapePunctuation(originalTablePattern, isOracle);
        DatabaseMetaData databaseMetaData = getDatabaseMetaData(connection);
        boolean supportsCatalogsInTableDefinitions = true;
        try {
            supportsCatalogsInTableDefinitions =
                databaseMetaData.supportsCatalogsInTableDefinitions();
        }
        catch (SQLException sqlException) { /* ignore*/ }
        String catalogPattern = escapePunctuation(
            supportsCatalogsInTableDefinitions ? originalCatalogPattern : "", isOracle);
        // Make sure table(s) is/are available
View Full Code Here

       
        assertFalse(dmd.supportsCatalogsInDataManipulation());
        assertFalse(dmd.supportsCatalogsInIndexDefinitions());
        assertFalse(dmd.supportsCatalogsInPrivilegeDefinitions());
        assertFalse(dmd.supportsCatalogsInProcedureCalls());
        assertFalse(dmd.supportsCatalogsInTableDefinitions());
       
        assertTrue(dmd.supportsColumnAliasing());
       
        assertFalse(dmd.supportsConvert());
        // Simple check since convert is not supported.
View Full Code Here

       
        assertFalse(dmd.supportsCatalogsInDataManipulation());
        assertFalse(dmd.supportsCatalogsInIndexDefinitions());
        assertFalse(dmd.supportsCatalogsInPrivilegeDefinitions());
        assertFalse(dmd.supportsCatalogsInProcedureCalls());
        assertFalse(dmd.supportsCatalogsInTableDefinitions());
       
        assertTrue(dmd.supportsColumnAliasing());
       
        // Bug DERBY-462 should return false.
        assertTrue(dmd.supportsConvert());
View Full Code Here

    assertEquals(System.getProperty("hive.version"), meta.getDatabaseProductVersion());
    assertTrue("verifying hive version pattern. got " + meta.getDatabaseProductVersion(),
        Pattern.matches("\\d+\\.\\d+\\.\\d+.*", meta.getDatabaseProductVersion()) );

    assertEquals(DatabaseMetaData.sqlStateSQL99, meta.getSQLStateType());
    assertFalse(meta.supportsCatalogsInTableDefinitions());
    assertTrue(meta.supportsSchemasInTableDefinitions());
    assertTrue(meta.supportsSchemasInDataManipulation());
    assertFalse(meta.supportsMultipleResultSets());
    assertFalse(meta.supportsStoredProcedures());
    assertTrue(meta.supportsAlterTableWithAddColumn());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.