mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GT-3294 Added support for DB FixedField with improved indexing.
This commit is contained in:
@@ -600,7 +600,7 @@ public abstract class AbstractLocalFileSystemTest extends AbstractGenericTest {
|
||||
DBHandle dbh = new DBHandle();
|
||||
long id = dbh.startTransaction();
|
||||
dbh.createTable("test",
|
||||
new Schema(0, "key", new Class[] { IntField.class }, new String[] { "dummy" }));
|
||||
new Schema(0, "key", new Field[] { IntField.INSTANCE }, new String[] { "dummy" }));
|
||||
dbh.endTransaction(id, true);
|
||||
BufferFile bf =
|
||||
fs.createDatabase("/abc", "fred", null, "Database", dbh.getBufferSize(), "bob", null);
|
||||
@@ -741,7 +741,7 @@ public abstract class AbstractLocalFileSystemTest extends AbstractGenericTest {
|
||||
DBHandle dbh = new DBHandle();
|
||||
long id = dbh.startTransaction();
|
||||
dbh.createTable("test",
|
||||
new Schema(0, "key", new Class[] { IntField.class }, new String[] { "dummy" }));
|
||||
new Schema(0, "key", new Field[] { IntField.INSTANCE }, new String[] { "dummy" }));
|
||||
dbh.endTransaction(id, true);
|
||||
BufferFile bf =
|
||||
fs.createDatabase("/abc", "greg", "123", "Database", dbh.getBufferSize(), "test", null);
|
||||
@@ -789,7 +789,7 @@ public abstract class AbstractLocalFileSystemTest extends AbstractGenericTest {
|
||||
DBHandle dbh = new DBHandle();
|
||||
long id = dbh.startTransaction();
|
||||
dbh.createTable("test",
|
||||
new Schema(0, "key", new Class[] { IntField.class }, new String[] { "dummy" }));
|
||||
new Schema(0, "key", new Field[] { IntField.INSTANCE }, new String[] { "dummy" }));
|
||||
dbh.endTransaction(id, true);
|
||||
BufferFile bf =
|
||||
fs.createDatabase("/abc", "greg", "123", "Database", dbh.getBufferSize(), "test", null);
|
||||
@@ -933,7 +933,7 @@ public abstract class AbstractLocalFileSystemTest extends AbstractGenericTest {
|
||||
DBHandle dbh = new DBHandle();
|
||||
long id = dbh.startTransaction();
|
||||
dbh.createTable("test",
|
||||
new Schema(0, "key", new Class[] { IntField.class }, new String[] { "dummy" }));
|
||||
new Schema(0, "key", new Field[] { IntField.INSTANCE }, new String[] { "dummy" }));
|
||||
dbh.endTransaction(id, true);
|
||||
BufferFile bf = fs.createDatabase(folderPath, itemName, fileId, "Database",
|
||||
dbh.getBufferSize(), "test", null);
|
||||
|
||||
@@ -35,9 +35,10 @@ public class RecoveryDBTest extends AbstractGenericTest {
|
||||
private static int RECORD_COUNT = 1000;
|
||||
|
||||
private static Schema SCHEMA =
|
||||
new Schema(1, "key", new Class[] { StringField.class }, new String[] { "field1" });
|
||||
new Schema(1, "key", new Field[] { StringField.INSTANCE }, new String[] { "field1" });
|
||||
|
||||
private static final File testDir = new File(AbstractGenericTest.getTestDirectoryPath(), "test");
|
||||
private static final File testDir =
|
||||
new File(AbstractGenericTest.getTestDirectoryPath(), "test");
|
||||
|
||||
private LocalFileSystem fileSystem;
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import utilities.util.FileUtilities;
|
||||
public class PackedDatabaseTest extends AbstractGenericTest {
|
||||
|
||||
private static final Schema TEST_SCHEMA =
|
||||
new Schema(1, "Key", new Class[] { StringField.class }, new String[] { "Col1" });
|
||||
new Schema(1, "Key", new Field[] { StringField.INSTANCE }, new String[] { "Col1" });
|
||||
|
||||
private File packedDbFile;
|
||||
private PackedDatabase db;
|
||||
|
||||
Reference in New Issue
Block a user