mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-05-06 14:47:50 +08:00
Use col->is_fixed member directly
This commit is contained in:
parent
ba2ccb4574
commit
3e65f9718c
@ -1,3 +1,6 @@
|
||||
Thu Jun 23 00:40:32 CDT 2005 Jeff Smith <whydoubt@yahoo.com>
|
||||
* src/libmdb/write.c: Use col->is_fixed member directly
|
||||
|
||||
Sat Jun 18 01:49:03 CDT 2005 Jeff Smith <whydoubt@yahoo.com>
|
||||
* src/gmdb2/gladefiles/gmdb-debug.glade:
|
||||
* src/gmdb2/debug.c: Fix several lockups, leaks, and warnings
|
||||
|
@ -219,7 +219,7 @@ mdb_crack_row(MdbTableDef *table, int row_start, int row_end, MdbField *fields)
|
||||
unsigned int col_start;
|
||||
col = g_ptr_array_index(table->columns,i);
|
||||
fields[i].colnum = i;
|
||||
fields[i].is_fixed = (mdb_is_fixed_col(col)) ? 1 : 0;
|
||||
fields[i].is_fixed = col->is_fixed;
|
||||
byte_num = col->col_num / 8;
|
||||
bit_num = col->col_num % 8;
|
||||
/* logic on nulls is reverse, 1 is not null, 0 is null */
|
||||
@ -802,7 +802,7 @@ mdb_copy_index_pg(MdbTableDef *table, MdbIndex *idx, MdbIndexPage *ipg)
|
||||
}
|
||||
keycol = idx->key_col_num[0];
|
||||
col = g_ptr_array_index (table->columns, keycol - 1);
|
||||
if (!mdb_is_fixed_col(col)) {
|
||||
if (!col->is_fixed) {
|
||||
fprintf(stderr,"variable length key columns not yet supported, aborting\n");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user