Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8133172

OracleDatabaseMetaData.supportsAlterTableWithDropColumn()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 8u51
    • core-libs
    • x86
    • windows_8

      A DESCRIPTION OF THE REQUEST :
      I know this is little relevant to the Java jdk , But i did not find a place that help
      ......
      The problem:
      when calling this method (supportsAlterTableWithDropColumn()) on OracleDatabaseMetaData Object It gives me false , I don't know why It gives me this result - False -
      It was with a privileged user and non privileged user was the same result



      JUSTIFICATION :
      Maybe its a mistake in the JDBC implementation

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Gives me TRUE
      ACTUAL -
      Gives me FALSE

      ---------- BEGIN SOURCE ----------
      import java.sql.*;

      public class SomeClass {

       public static void main(String args[])
      {
               ///DB ->XE 11gR2
                Connection oracle = DriverManager.getConnection("DB_URL");
              System.out.println("Supports Alter table with drop column "
                          + oracle.getMetaData().supportsAlterTableWithDropColumn());
      }
      ---------- END SOURCE ----------

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: