mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
patches from Karl and Carl
This commit is contained in:
@@ -49,11 +49,17 @@ enum {
|
||||
};
|
||||
enum {
|
||||
MDB_BOOL = 0x01,
|
||||
MDB_BYTE = 0x02,
|
||||
MDB_INT = 0x03,
|
||||
MDB_LONGINT = 0x04,
|
||||
MDB_MONEY = 0x05,
|
||||
MDB_FLOAT = 0x06,
|
||||
MDB_DOUBLE = 0x07,
|
||||
MDB_SDATETIME = 0x08,
|
||||
MDB_TEXT = 0x0a,
|
||||
MDB_HYPERLINK = 0x0c
|
||||
MDB_OLE = 0x0b,
|
||||
MDB_MEMO = 0x0c,
|
||||
MDB_REPID = 0x0f
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
@@ -134,6 +140,6 @@ extern char *mdb_col_to_string(MdbHandle *mdb, int start, int datatype, int size
|
||||
|
||||
|
||||
/* dump.c */
|
||||
void buffer_dump(const char* buf, int start, int end);
|
||||
void buffer_dump(const unsigned char* buf, int start, int end);
|
||||
|
||||
#endif /* _mdbtools_h_ */
|
||||
|
||||
@@ -28,21 +28,24 @@ char *mdb_get_coltype_string(int col_type)
|
||||
** its own mapping.
|
||||
*/
|
||||
static char *type_name[] = {"Unknown 0x00",
|
||||
"Unknown 0x01",
|
||||
"Unknown 0x02",
|
||||
"Boolean",
|
||||
"Byte",
|
||||
"Integer",
|
||||
"Long Integer",
|
||||
"Unknown 0x05",
|
||||
"Unknown 0x06",
|
||||
"Unknown 0x07",
|
||||
"Currency",
|
||||
"Single",
|
||||
"Double",
|
||||
"DateTime (Short)",
|
||||
"Unknown 0x09",
|
||||
"Varchar",
|
||||
"Unknown 0x0b"
|
||||
"Hyperlink"
|
||||
"Text",
|
||||
"OLE",
|
||||
"Memo/Hyperlink",
|
||||
"Unknown 0x0d",
|
||||
"Unknown 0x0e",
|
||||
"Replication ID"
|
||||
};
|
||||
|
||||
if (col_type > 11) {
|
||||
if (col_type > 0x0f) {
|
||||
return NULL;
|
||||
} else {
|
||||
return type_name[col_type];
|
||||
|
||||
Reference in New Issue
Block a user