mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
fix bug #903498
This commit is contained in:
@@ -45,6 +45,8 @@ mdb_ascii2unicode(MdbHandle *mdb, unsigned char *buf, int offset, int len, char
|
||||
{
|
||||
int i = 0;
|
||||
|
||||
if (!buf) return 0;
|
||||
|
||||
if (IS_JET3(mdb)) {
|
||||
strncpy(dest, &buf[offset], len);
|
||||
dest[len]='\0';
|
||||
|
||||
@@ -28,6 +28,25 @@
|
||||
* commands like "list tables" and "describe table"
|
||||
*/
|
||||
|
||||
void
|
||||
mdb_fill_temp_col(MdbColumn *tcol, char *col_name, int col_size, int col_type, int is_fixed)
|
||||
{
|
||||
memset(tcol,0,sizeof(MdbColumn));
|
||||
strcpy(tcol->name, col_name);
|
||||
tcol->col_size = col_size;
|
||||
tcol->col_type = col_type;
|
||||
tcol->is_fixed = is_fixed;
|
||||
}
|
||||
void
|
||||
mdb_fill_temp_field(MdbField *field, void *value, int siz, int is_fixed, int is_null, int start, int colnum)
|
||||
{
|
||||
field->value = value;
|
||||
field->siz = siz;
|
||||
field->is_fixed = is_fixed;
|
||||
field->is_null = is_null;
|
||||
field->start = start;
|
||||
field->colnum = colnum;
|
||||
}
|
||||
MdbTableDef *
|
||||
mdb_create_temp_table(MdbHandle *mdb, char *name)
|
||||
{
|
||||
|
||||
@@ -145,8 +145,6 @@ mdb_crack_row4(MdbTableDef *table, int row_start, int row_end, MdbField *fields)
|
||||
/* find the end of data pointer */
|
||||
eod = mdb_pg_get_int16(mdb, row_end - 3 - var_cols*2 - bitmask_sz);
|
||||
|
||||
col_start = 2;
|
||||
|
||||
/* actual cols on this row */
|
||||
fixed_cols_found = 0;
|
||||
var_cols_found = 0;
|
||||
|
||||
Reference in New Issue
Block a user