mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-10-21 02:57:42 +08:00
Use 'Flags' field in MSysObjects to recognize system tables
This commit is contained in:
@@ -355,3 +355,14 @@ guint32 pgnum;
|
||||
printf("\n");
|
||||
}
|
||||
}
|
||||
|
||||
int mdb_is_user_table(MdbCatalogEntry *entry)
|
||||
{
|
||||
return ((entry->object_type == MDB_TABLE)
|
||||
&& !(entry->flags & 0x80000002)) ? 1 : 0;
|
||||
}
|
||||
int mdb_is_system_table(MdbCatalogEntry *entry)
|
||||
{
|
||||
return ((entry->object_type == MDB_TABLE)
|
||||
&& (entry->flags & 0x80000002)) ? 1 : 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user