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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.11.1.1
    • 10.10.2.1, 10.11.1.3, 10.12.1.1
    • JDBC
    • None
    • Normal
    • Newcomer, Repro attached
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: