Package java.sql

Examples of java.sql.DatabaseMetaData.supportsAlterTableWithAddColumn()


    assertFalse(meta.supportsCatalogsInTableDefinitions());
    assertFalse(meta.supportsSchemasInTableDefinitions());
    assertFalse(meta.supportsSchemasInDataManipulation());
    assertFalse(meta.supportsMultipleResultSets());
    assertFalse(meta.supportsStoredProcedures());
    assertTrue(meta.supportsAlterTableWithAddColumn());
  }

  public void testResultSetMetaData() throws SQLException {
    Statement stmt = con.createStatement();
View Full Code Here


     */
    public void testDetermineFeatureSupport() throws SQLException
    {
        DatabaseMetaData dmd = getDMD();
       
        assertTrue(dmd.supportsAlterTableWithAddColumn());
        assertTrue(dmd.supportsAlterTableWithDropColumn());
       
  /* DERBY-2243 Derby does support ANSI 92 standards
  * and this behaviour is now consistant across drivers
  */
 
View Full Code Here

     */
    public void testDetermineFeatureSupport() throws SQLException
    {
        DatabaseMetaData dmd = getDMD();
       
        assertTrue(dmd.supportsAlterTableWithAddColumn());
        assertTrue(dmd.supportsAlterTableWithDropColumn());
       
  /* DERBY-2243 Derby does support ANSI 92 standards
  * and this behaviour is now consistant across drivers
  */
 
View Full Code Here

     */
    public void testDetermineFeatureSupport() throws SQLException
    {
        DatabaseMetaData dmd = getDMD();
       
        assertTrue(dmd.supportsAlterTableWithAddColumn());
        assertTrue(dmd.supportsAlterTableWithDropColumn());
       
  /* DERBY-2243 Derby does support ANSI 92 standards
  * and this behaviour is now consistant across drivers
  */
 
View Full Code Here

      System.out.println("getTimeDateFunctions(): " +
                 met.getTimeDateFunctions());
      System.out.println("getExtraNameCharacters(): " +
                 met.getExtraNameCharacters());
      System.out.println("supportsAlterTableWithAddColumn(): " +
                 met.supportsAlterTableWithAddColumn());
      System.out.println("supportsAlterTableWithDropColumn(): " +
                 met.supportsAlterTableWithDropColumn());
      System.out.println("supportsColumnAliasing(): " +
                 met.supportsColumnAliasing());
      System.out.println("nullPlusNonNullIsNull(): " +
View Full Code Here

      System.out.println("getTimeDateFunctions(): " +
                 met.getTimeDateFunctions());
      System.out.println("getExtraNameCharacters(): " +
                 met.getExtraNameCharacters());
      System.out.println("supportsAlterTableWithAddColumn(): " +
                 met.supportsAlterTableWithAddColumn());
      System.out.println("supportsAlterTableWithDropColumn(): " +
                 met.supportsAlterTableWithDropColumn());
      System.out.println("supportsColumnAliasing(): " +
                 met.supportsColumnAliasing());
      System.out.println("nullPlusNonNullIsNull(): " +
View Full Code Here

    assertFalse(meta.supportsCatalogsInTableDefinitions());
    assertFalse(meta.supportsSchemasInTableDefinitions());
    assertFalse(meta.supportsSchemasInDataManipulation());
    assertFalse(meta.supportsMultipleResultSets());
    assertFalse(meta.supportsStoredProcedures());
    assertTrue(meta.supportsAlterTableWithAddColumn());
  }

  public void testResultSetMetaData() throws SQLException {
    Statement stmt = con.createStatement();
View Full Code Here

  public void testTables() throws SQLException {
    DatabaseMetaData dbmd = con.getMetaData();
    assertNotNull(dbmd);

    // we can add columns
    assertTrue(dbmd.supportsAlterTableWithAddColumn());

    // we can drop columns
    assertTrue(dbmd.supportsAlterTableWithDropColumn());
  }
View Full Code Here

      System.out.println("getTimeDateFunctions(): " +
                 met.getTimeDateFunctions());
      System.out.println("getExtraNameCharacters(): " +
                 met.getExtraNameCharacters());
      System.out.println("supportsAlterTableWithAddColumn(): " +
                 met.supportsAlterTableWithAddColumn());
      System.out.println("supportsAlterTableWithDropColumn(): " +
                 met.supportsAlterTableWithDropColumn());
      System.out.println("supportsColumnAliasing(): " +
                 met.supportsColumnAliasing());
      System.out.println("nullPlusNonNullIsNull(): " +
View Full Code Here

     */
    public void testDetermineFeatureSupport() throws SQLException
    {
        DatabaseMetaData dmd = getDMD();
       
        assertTrue(dmd.supportsAlterTableWithAddColumn());
        assertTrue(dmd.supportsAlterTableWithDropColumn());
       
  /* DERBY-2243 Derby does support ANSI 92 standards
  * and this behaviour is now consistant across drivers
  */
 
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.