mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Make mdb-count case-insensitive to table names
This matches the behavior of mdb-export. Thanks to Nicholas Crookston.
This commit is contained in:
parent
4bde3609c1
commit
3c6c8e07db
@ -36,7 +36,7 @@ int main(int argc, char **argv) {
|
||||
mdb_read_catalog(mdb, MDB_TABLE);
|
||||
for (i = 0; i < mdb->num_catalog; i++) {
|
||||
entry = g_ptr_array_index(mdb->catalog, i);
|
||||
if (entry->object_type == MDB_TABLE && !strcmp(entry->object_name, argv[2])) {
|
||||
if (entry->object_type == MDB_TABLE && !g_ascii_strcasecmp(entry->object_name, argv[2])) {
|
||||
table = mdb_read_table(entry);
|
||||
fprintf(stdout, "%d\n", table->num_rows);
|
||||
found = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user