From 6c47f075c767f2b83677eb16fc316178524f6913 Mon Sep 17 00:00:00 2001 From: "ingo@mysql.com" <> Date: Fri, 10 Sep 2004 18:56:47 +0200 Subject: BUG#4788 - show create table provides incorrect statement. Added code to adjust the field_length of user variables in dependence on the field type. Aded new constants for numeric field widths. --- include/mysql_com.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/mysql_com.h') diff --git a/include/mysql_com.h b/include/mysql_com.h index 3b65d6f3fbc..449cd0ba396 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -136,6 +136,11 @@ enum enum_server_command struct st_vio; /* Only C */ typedef struct st_vio Vio; +#define MAX_TINYINT_WIDTH 3 /* Max width for a TINY w.o. sign */ +#define MAX_SMALLINT_WIDTH 5 /* Max width for a SHORT w.o. sign */ +#define MAX_MEDIUMINT_WIDTH 8 /* Max width for a INT24 w.o. sign */ +#define MAX_INT_WIDTH 10 /* Max width for a LONG w.o. sign */ +#define MAX_BIGINT_WIDTH 20 /* Max width for a LONGLONG */ #define MAX_CHAR_WIDTH 255 /* Max length for a CHAR colum */ #define MAX_BLOB_WIDTH 8192 /* Default width for blob */ -- cgit v1.2.1 From 123ce649b4bbcc62e7a58d0331e08001cbdedb96 Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Fri, 22 Oct 2004 20:33:10 +0200 Subject: added missing command names to command_name[] array --- include/mysql_com.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/mysql_com.h') diff --git a/include/mysql_com.h b/include/mysql_com.h index 449cd0ba396..4686acc098f 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -45,13 +45,16 @@ enum enum_server_command COM_TABLE_DUMP, COM_CONNECT_OUT, COM_REGISTER_SLAVE, COM_PREPARE, COM_EXECUTE, COM_LONG_DATA, COM_CLOSE_STMT, COM_RESET_STMT, COM_SET_OPTION, - COM_END /* Must be last */ + /* don't forget to update const char *command_name[] in sql_parse.cc */ + + /* Must be last */ + COM_END }; /* Length of random string sent by server on handshake; this is also length of - obfuscated password, recieved from client + obfuscated password, recieved from client */ #define SCRAMBLE_LENGTH 20 #define SCRAMBLE_LENGTH_323 8 -- cgit v1.2.1