mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
Improved DB error handling to better react to future DB schema revisions
This commit is contained in:
parent
4fc507f711
commit
ea5b523f82
19 changed files with 191 additions and 330 deletions
|
@ -31,10 +31,9 @@ public class FieldIndexTable extends IndexTable {
|
|||
/**
|
||||
* Construct a new secondary index which is based upon a specific field within the
|
||||
* primary table specified by name.
|
||||
* @param db database handle
|
||||
* @param primaryTable primary table.
|
||||
* @param colIndex identifies the indexed column within the primary table.
|
||||
* @throws IOException
|
||||
* @throws IOException thrown if an IO error occurs
|
||||
*/
|
||||
FieldIndexTable(Table primaryTable, int colIndex) throws IOException {
|
||||
this(primaryTable, primaryTable.getDBHandle().getMasterTable().createTableRecord(
|
||||
|
@ -44,11 +43,11 @@ public class FieldIndexTable extends IndexTable {
|
|||
/**
|
||||
* Construct a new or existing secondary index. An existing index must have
|
||||
* its' root ID specified within the tableRecord.
|
||||
* @param db database handle
|
||||
* @param bufferMgr database buffer manager
|
||||
* @param primaryTable primary table.
|
||||
* @param indexTableRecord specifies the index parameters.
|
||||
* @throws IOException thrown if an IO error occurs
|
||||
*/
|
||||
FieldIndexTable(Table primaryTable, TableRecord indexTableRecord) {
|
||||
FieldIndexTable(Table primaryTable, TableRecord indexTableRecord) throws IOException {
|
||||
super(primaryTable, indexTableRecord);
|
||||
this.indexSchema = indexTable.getSchema();
|
||||
this.indexColumn = indexTableRecord.getIndexedColumn();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue