diff --git a/src/defs.h b/src/defs.h index a5189546..836c9c42 100644 --- a/src/defs.h +++ b/src/defs.h @@ -58,7 +58,7 @@ #define MAX_SQL_VARS 20 #define TYPE_UNDEF 0 -#define TYPE_TINY 1 +#define TYPE_SHORT 1 #define TYPE_LONG 2 #define TYPE_LONGLONG 3 #define TYPE_STRING 4 diff --git a/src/mysql.c b/src/mysql.c index f294fb30..770d8dd3 100644 --- a/src/mysql.c +++ b/src/mysql.c @@ -64,8 +64,8 @@ int p_exec_query(struct session_data *sdata, MYSQL_STMT *stmt, struct __data *da switch(data->type[i]) { - case TYPE_TINY: - bind[i].buffer_type = MYSQL_TYPE_TINY; + case TYPE_SHORT: + bind[i].buffer_type = MYSQL_TYPE_SHORT; bind[i].length = 0; break; @@ -134,7 +134,7 @@ int p_store_results(struct session_data *sdata, MYSQL_STMT *stmt, struct __data if(data->type[i] > TYPE_UNDEF){ switch(data->type[i]) { - case TYPE_TINY: bind[i].buffer_type = MYSQL_TYPE_TINY; + case TYPE_SHORT: bind[i].buffer_type = MYSQL_TYPE_SHORT; break;