From 2776500c220c92bb78df03513cc3dd33588f40e5 Mon Sep 17 00:00:00 2001 From: "monty@donna.mysql.com" <> Date: Tue, 12 Sep 2000 03:02:33 +0300 Subject: Update to new root alloc, OPTIMIZE TABLE and some other changes --- include/mysql.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/mysql.h') diff --git a/include/mysql.h b/include/mysql.h index b738c8535fe..5c2646b592d 100644 --- a/include/mysql.h +++ b/include/mysql.h @@ -49,8 +49,10 @@ typedef struct st_used_mem { /* struct for once_alloc */ typedef struct st_mem_root { USED_MEM *free; USED_MEM *used; + USED_MEM *pre_alloc; unsigned int min_malloc; unsigned int block_size; + void (*error_handler)(void); } MEM_ROOT; #endif @@ -74,7 +76,7 @@ extern char *mysql_unix_port; #define IS_BLOB(n) ((n) & BLOB_FLAG) #define IS_NUM(t) ((t) <= FIELD_TYPE_INT24 || (t) == FIELD_TYPE_YEAR) #define IS_NUM_FIELD(f) ((f)->flags & NUM_FLAG) -#define INTERNAL_NUM_FIELD(f) (((f)->type <= FIELD_TYPE_INT24 && (f)->type != FIELD_TYPE_TIMESTAMP || (f)->length == 14 || (f)->length == 8) || (f)->type == FIELD_TYPE_YEAR) +#define INTERNAL_NUM_FIELD(f) (((f)->type <= FIELD_TYPE_INT24 && ((f)->type != FIELD_TYPE_TIMESTAMP || (f)->length == 14 || (f)->length == 8)) || (f)->type == FIELD_TYPE_YEAR) typedef struct st_mysql_field { char *name; /* Name of column */ -- cgit v1.2.1