Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6662

DatabaseMetaData.usesLocalFiles() returns true for in-memory databases

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.11.1.1
    • Fix Version/s: 10.10.2.1, 10.11.1.3, 10.12.1.1
    • Component/s: JDBC
    • Labels:
      None
    • Urgency:
      Normal
    • Issue & fix info:
      Newcomer, Repro attached
    • Bug behavior facts:
      Deviation from standard

      Description

      DatabaseMetaData.usesLocalFiles() returns true for in-memory databases. And it also returns true for DatabaseMetaData.usesLocalFilePerTable(). The following script shows this:

      connect 'jdbc:derby:memory:db;create=true';
      
      call syscs_util.syscs_register_tool( 'databaseMetaData', true );
      
      values usesLocalFiles();
      
      values usesLocalFilePerTable();
      

      I think that these methods should return false because an in-memory database does not store tables in files.

        Attachments

        1. DERBY-6662.diff
          6 kB
          Myrna van Lunteren
        2. DERBY-6662.diff2
          1 kB
          Myrna van Lunteren

          Issue Links

            Activity

              People

              • Assignee:
                myrna Myrna van Lunteren
                Reporter:
                rhillegas Richard N. Hillegas
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: