mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-06-28 15:39:02 +08:00
Patch warnings.diff from Nirgal
This commit is contained in:
parent
fba597765d
commit
aee657f603
@ -244,7 +244,6 @@ int mdb_read_row(MdbTableDef *table, unsigned int row)
|
|||||||
MdbHandle *mdb = table->entry->mdb;
|
MdbHandle *mdb = table->entry->mdb;
|
||||||
MdbColumn *col;
|
MdbColumn *col;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
int rc;
|
|
||||||
int row_start;
|
int row_start;
|
||||||
size_t row_size;
|
size_t row_size;
|
||||||
int delflag, lookupflag;
|
int delflag, lookupflag;
|
||||||
@ -290,7 +289,7 @@ int mdb_read_row(MdbTableDef *table, unsigned int row)
|
|||||||
/* use num_cols instead of num_fields -- bsb 03/04/02 */
|
/* use num_cols instead of num_fields -- bsb 03/04/02 */
|
||||||
for (i = 0; i < table->num_cols; i++) {
|
for (i = 0; i < table->num_cols; i++) {
|
||||||
col = g_ptr_array_index(table->columns,fields[i].colnum);
|
col = g_ptr_array_index(table->columns,fields[i].colnum);
|
||||||
rc = _mdb_attempt_bind(mdb, col, fields[i].is_null,
|
_mdb_attempt_bind(mdb, col, fields[i].is_null,
|
||||||
fields[i].start, fields[i].siz);
|
fields[i].start, fields[i].siz);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -718,11 +718,12 @@ mdb_index_find_row(MdbHandle *mdb, MdbIndex *idx, MdbIndexChain *chain, guint32
|
|||||||
|
|
||||||
void mdb_index_walk(MdbTableDef *table, MdbIndex *idx)
|
void mdb_index_walk(MdbTableDef *table, MdbIndex *idx)
|
||||||
{
|
{
|
||||||
MdbHandle *mdb = table->entry->mdb;
|
/*
|
||||||
int cur_pos = 0;
|
MdbHandle *mdb = table->entry->mdb;
|
||||||
unsigned char marker;
|
int cur_pos = 0;
|
||||||
MdbColumn *col;
|
unsigned char marker;
|
||||||
unsigned int i;
|
MdbColumn *col;
|
||||||
|
unsigned int i;
|
||||||
|
|
||||||
if (idx->num_keys!=1) return;
|
if (idx->num_keys!=1) return;
|
||||||
|
|
||||||
@ -734,6 +735,7 @@ unsigned int i;
|
|||||||
col=g_ptr_array_index(table->columns,idx->key_col_num[i]-1);
|
col=g_ptr_array_index(table->columns,idx->key_col_num[i]-1);
|
||||||
//printf("column %d coltype %d col_size %d (%d)\n",i,col->col_type, mdb_col_fixed_size(col), col->col_size);
|
//printf("column %d coltype %d col_size %d (%d)\n",i,col->col_type, mdb_col_fixed_size(col), col->col_size);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
mdb_index_dump(MdbTableDef *table, MdbIndex *idx)
|
mdb_index_dump(MdbTableDef *table, MdbIndex *idx)
|
||||||
|
@ -19,6 +19,8 @@
|
|||||||
*/
|
*/
|
||||||
#include "mdbsql.h"
|
#include "mdbsql.h"
|
||||||
|
|
||||||
|
int yylex(void);
|
||||||
|
int yyerror(char *);
|
||||||
|
|
||||||
MdbSQL *_mdb_sql(MdbSQL *sql)
|
MdbSQL *_mdb_sql(MdbSQL *sql)
|
||||||
{
|
{
|
||||||
|
@ -42,9 +42,8 @@ main (int argc, char **argv)
|
|||||||
exit (1);
|
exit (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int digit_optind = 0;
|
|
||||||
while (1) {
|
while (1) {
|
||||||
int this_option_optind = optind ? optind : 1;
|
//int this_option_optind = optind ? optind : 1;
|
||||||
int option_index = 0;
|
int option_index = 0;
|
||||||
static struct option long_options[] = {
|
static struct option long_options[] = {
|
||||||
{"table", 1, NULL, 'T'},
|
{"table", 1, NULL, 'T'},
|
||||||
|
Loading…
Reference in New Issue
Block a user