mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-18 18:22:07 +08:00
Fix mdb_read_next_dpg. Correct long int display length
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
Sat Aug 28 14:21:41 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
|
||||
* src/libmdb/data.c: Fix mdb_read_next_dpg
|
||||
Correct long int display length
|
||||
|
||||
Sat Aug 28 00:20:44 CDT 2004 Jeff Smith <whydoubt@yahoo.com>
|
||||
* src/libmdb/write.c: Jump table packing/cracking improvements
|
||||
* src/libmdb/worktable.c: Fix bug in temp tables with multiple columns
|
||||
|
@@ -268,16 +268,16 @@ int mdb_read_next_dpg(MdbTableDef *table)
|
||||
{
|
||||
MdbCatalogEntry *entry = table->entry;
|
||||
MdbHandle *mdb = entry->mdb;
|
||||
int next_pg;
|
||||
int map_type;
|
||||
|
||||
#ifndef SLOW_READ
|
||||
table->cur_phys_pg = mdb_map_find_next(mdb, table->usage_map,
|
||||
next_pg = mdb_map_find_next(mdb, table->usage_map,
|
||||
table->map_sz, table->cur_phys_pg);
|
||||
|
||||
if (table->cur_phys_pg && mdb_read_pg(mdb, table->cur_phys_pg)) {
|
||||
if (next_pg && mdb_read_pg(mdb, next_pg)) {
|
||||
table->cur_phys_pg = next_pg;
|
||||
return table->cur_phys_pg;
|
||||
} else {
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
/* can't do a fast read, go back to the old way */
|
||||
@@ -815,7 +815,7 @@ int mdb_col_disp_size(MdbColumn *col)
|
||||
return 5;
|
||||
break;
|
||||
case MDB_LONGINT:
|
||||
return 7;
|
||||
return 10;
|
||||
break;
|
||||
case MDB_FLOAT:
|
||||
return 10;
|
||||
|
Reference in New Issue
Block a user